Struct vit_servicing_station_tests::common::startup::server::settings::ServerSettingsBuilder
source · pub struct ServerSettingsBuilder {
settings: ServiceSettings,
cors: Option<Cors>,
}
Fields§
§settings: ServiceSettings
§cors: Option<Cors>
Implementations§
source§impl ServerSettingsBuilder
impl ServerSettingsBuilder
pub fn with_random_localhost_address(&mut self) -> &mut Self
pub fn with_localhost_address(&mut self, port: u32) -> &mut Self
fn format_localhost_address(port: u32) -> SocketAddr
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_block0_folder_path( &mut self, block0_folder_path: impl AsRef<Path> ) -> &mut Self
pub fn with_cors(&mut self, cors: Cors) -> &mut Self
pub fn with_api_tokens(&mut self, enabled: bool) -> &mut Self
pub fn with_log_output_path(&mut self, path: PathBuf) -> &mut Self
pub fn with_log_level(&mut self, log_level: LogLevel) -> &mut Self
pub fn build(&self) -> ServiceSettings
Trait Implementations§
source§impl Default for ServerSettingsBuilder
impl Default for ServerSettingsBuilder
source§fn default() -> ServerSettingsBuilder
fn default() -> ServerSettingsBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl RefUnwindSafe for ServerSettingsBuilder
impl Send for ServerSettingsBuilder
impl Sync for ServerSettingsBuilder
impl Unpin for ServerSettingsBuilder
impl UnwindSafe for ServerSettingsBuilder
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