pub struct Config {
pub pve: PveConfig,
pub agent: AgentConfig,
pub relay: RelayConfig,
pub images: ImageConfig,
pub recipes: RecipeConfig,
pub vmid_pattern: VmidPattern,
}Fields§
§pve: PveConfig§agent: AgentConfig§relay: RelayConfig§images: ImageConfig§recipes: RecipeConfig§vmid_pattern: VmidPatternImplementations§
Source§impl Config
impl Config
pub fn validate(&self) -> Result<(), ConfigError>
pub fn redacted(&self) -> RedactedConfig
Source§impl Config
impl Config
pub fn redacted_pairs(&self) -> BTreeMap<String, String>
pub fn get_redacted(&self, key: &str) -> Option<String>
pub fn set_value(&mut self, key: &str, value: &str) -> Result<(), ConfigError>
pub fn unset_value(&mut self, key: &str) -> Result<(), ConfigError>
pub fn apply_overrides( &mut self, overrides: &ConfigOverrides, ) -> Result<(), ConfigError>
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Config
impl<'de> Deserialize<'de> for Config
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
impl Eq for Config
impl StructuralPartialEq for Config
Auto Trait Implementations§
impl Freeze for Config
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnsafeUnpin for Config
impl UnwindSafe for Config
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.