Struct vit_servicing_station_tests_f10::common::startup::server::bootstrap::ServerBootstrapper
source · pub struct ServerBootstrapper {
settings_builder: ServerSettingsBuilder,
allowed_origins: Option<String>,
service_version: String,
}
Fields§
§settings_builder: ServerSettingsBuilder
§allowed_origins: Option<String>
§service_version: String
Implementations§
source§impl ServerBootstrapper
impl ServerBootstrapper
pub fn new() -> Self
pub fn with_localhost_address(&mut self, port: u32) -> &mut Self
pub fn with_log_level(&mut self, log_level: LogLevel) -> &mut Self
pub fn with_db_path<S: Into<String>>(&mut self, db_url: S) -> &mut Self
pub fn with_block0_path<S: Into<String>>(&mut self, block0_path: S) -> &mut Self
pub fn with_allowed_origins<S: Into<String>>( &mut self, allowed_origins: S ) -> &mut Self
pub fn with_api_tokens(&mut self, enabled: bool) -> &mut Self
pub fn with_service_version(&mut self, service_version: String) -> &mut Self
pub fn start_with_exe( &self, temp_dir: &TempDir, exe: PathBuf ) -> Result<Server, ServerBootstrapperError>
pub fn start( &self, temp_dir: &TempDir ) -> Result<Server, ServerBootstrapperError>
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for ServerBootstrapper
impl Send for ServerBootstrapper
impl Sync for ServerBootstrapper
impl Unpin for ServerBootstrapper
impl UnwindSafe for ServerBootstrapper
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more