Struct ConfigOpt
pub struct ConfigOpt {
pub clusters: Option<Vec<Cluster>>,
pub client: Option<ClientConfigOpt>,
pub daemon: Option<DaemonConfigOpt>,
}Expand description
Representation of the project configuration where everything is optional.
Used to handle cases where only some or none of the configurations are present. Enables backwards compatiblity with configuration files written by older versions.
Fields§
§clusters: Option<Vec<Cluster>>§client: Option<ClientConfigOpt>§daemon: Option<DaemonConfigOpt>Trait Implementations§
§impl<'de> Deserialize<'de> for ConfigOpt
impl<'de> Deserialize<'de> for ConfigOpt
§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 ConfigOpt
impl RefUnwindSafe for ConfigOpt
impl Send for ConfigOpt
impl Sync for ConfigOpt
impl Unpin for ConfigOpt
impl UnwindSafe for ConfigOpt
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