pub struct TripwireConfig {
pub snapshot: Option<SnapshotConfig>,
pub server: Option<ServerConfig>,
pub diff: Option<DiffConfig>,
}Fields§
§snapshot: Option<SnapshotConfig>§server: Option<ServerConfig>§diff: Option<DiffConfig>Implementations§
Source§impl TripwireConfig
impl TripwireConfig
pub fn load(path: &str) -> Result<Self>
pub fn load_or_default(path: Option<&str>) -> Result<Self>
pub fn get_baseline(&self) -> Option<String>
pub fn get_server_command(&self) -> Option<String>
pub fn get_timeout_ms(&self) -> u64
Trait Implementations§
Source§impl Clone for TripwireConfig
impl Clone for TripwireConfig
Source§fn clone(&self) -> TripwireConfig
fn clone(&self) -> TripwireConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TripwireConfig
impl Debug for TripwireConfig
Source§impl<'de> Deserialize<'de> for TripwireConfig
impl<'de> Deserialize<'de> for TripwireConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for TripwireConfig
impl RefUnwindSafe for TripwireConfig
impl Send for TripwireConfig
impl Sync for TripwireConfig
impl Unpin for TripwireConfig
impl UnsafeUnpin for TripwireConfig
impl UnwindSafe for TripwireConfig
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