pub struct Config {
pub version: u32,
pub applied_revision: Option<u64>,
pub node: NodeConfig,
pub cluster: ClusterConfig,
pub relay: Option<RelayConfig>,
pub service: Option<ServiceConfig>,
pub policy: Policy,
pub extra: BTreeMap<String, Value>,
}Fields§
§version: u32§applied_revision: Option<u64>Last signed revision projected to this file; edits require config apply.
node: NodeConfig§cluster: ClusterConfig§relay: Option<RelayConfig>Node-local transport settings are never replicated.
service: Option<ServiceConfig>Account routing metadata, local to this node and never replicated.
policy: Policy§extra: BTreeMap<String, Value>Implementations§
Source§impl Config
impl Config
pub fn host_recovery(&self) -> Result<Option<HostRecovery>>
pub fn set_host_recovery(&mut self, value: HostRecovery) -> Result<()>
Source§impl Config
impl Config
pub fn hosted_parent(&self) -> Result<Option<HostedParent>>
pub fn set_hosted_parent(&mut self, parent: HostedParent) -> Result<()>
Source§impl Config
impl Config
pub fn updates(&self) -> Result<Updates>
pub fn set_updates(&mut self, updates: Updates) -> Result<()>
pub fn gateway_registry(&self) -> Result<Option<String>>
pub fn set_gateway_registry(&mut self, id: String) -> Result<()>
pub fn profile_setup(&self) -> Result<Option<String>>
pub fn set_profile_setup(&mut self, id: String) -> Result<()>
pub fn account_source(&self) -> Result<Option<AccountSource>>
pub fn set_account_source(&mut self, source: AccountSource) -> Result<()>
pub fn contexts(&self) -> Result<Option<Contexts>>
pub fn set_contexts(&mut self, contexts: Contexts) -> Result<()>
pub fn portable_web(&self) -> Result<bool>
pub fn enable_portable_web(&mut self) -> Result<()>
pub fn validate(&self) -> Result<()>
Sourcepub fn validate_local(&self) -> Result<()>
pub fn validate_local(&self) -> Result<()>
Check routing and identity without rejecting an unapplied shared-policy edit. Live policy authority comes from the verified daemon database.
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
Auto Trait Implementations§
impl Forget for Config
impl Freeze for Config
impl Move 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<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more