pub struct BootstrapCommandBuilder {Show 15 fields
exe: PathBuf,
address: Option<String>,
allowed_origins: Option<String>,
block0_path: Option<String>,
block0_paths: Option<String>,
cert_file: Option<PathBuf>,
db_url: Option<String>,
enable_api_tokens: bool,
in_settings_file: Option<PathBuf>,
max_age_secs: Option<u32>,
out_settings_file: Option<PathBuf>,
priv_key_file: Option<PathBuf>,
log_file: Option<PathBuf>,
log_level: Option<String>,
service_version: Option<String>,
}
Expand description
In order to test robustness of server bootstrapper we need to be able to provide some
Fields§
§exe: PathBuf
§address: Option<String>
§allowed_origins: Option<String>
§block0_path: Option<String>
§block0_paths: Option<String>
§cert_file: Option<PathBuf>
§db_url: Option<String>
§enable_api_tokens: bool
§in_settings_file: Option<PathBuf>
§max_age_secs: Option<u32>
§out_settings_file: Option<PathBuf>
§priv_key_file: Option<PathBuf>
§log_file: Option<PathBuf>
§log_level: Option<String>
§service_version: Option<String>
Implementations§
source§impl BootstrapCommandBuilder
impl BootstrapCommandBuilder
pub fn new(exe: PathBuf) -> Self
pub fn address<S: Into<String>>(&mut self, address: S) -> &mut Self
pub fn allowed_origins<S: Into<String>>( &mut self, allowed_origins: S ) -> &mut Self
pub fn block0_path(&mut self, block0_path: Option<String>) -> &mut Self
pub fn block0_paths(&mut self, block0_paths: Option<String>) -> &mut Self
pub fn cert_file(&mut self, cert_file: &Path) -> &mut Self
pub fn db_url<S: Into<String>>(&mut self, db_url: S) -> &mut Self
pub fn enable_api_tokens(&mut self, enabled: bool) -> &mut Self
pub fn in_settings_file(&mut self, in_settings_file: &Path) -> &mut Self
pub fn max_age_secs(&mut self, max_age_secs: u32) -> &mut Self
pub fn out_settings_file(&mut self, out_settings_file: &Path) -> &mut Self
pub fn priv_key_file(&mut self, priv_key_file: &Path) -> &mut Self
pub fn log_file(&mut self, log_file: &Path) -> &mut Self
pub fn log_level(&mut self, log_level: &str) -> &mut Self
pub fn service_version<S: Into<String>>( &mut self, service_version: S ) -> &mut Self
pub fn build(&self) -> Command
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for BootstrapCommandBuilder
impl Send for BootstrapCommandBuilder
impl Sync for BootstrapCommandBuilder
impl Unpin for BootstrapCommandBuilder
impl UnwindSafe for BootstrapCommandBuilder
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