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 Configwhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<Rule>: Freeze,
*const LeafNode<String, Vec<String>> is !null: Freeze,
PhantomData<(Owned, LeafOrInternal)>: Freeze,
PhantomData<Box<(String, Vec<String>)>>: Freeze,
*const LeafNode<String, RelayGrant> is !null: Freeze,
PhantomData<Box<(String, RelayGrant)>>: Freeze,
*const LeafNode<String, AdminGrant> is !null: Freeze,
PhantomData<Box<(String, AdminGrant)>>: Freeze,
*const LeafNode<String, GroupAdminGrant> is !null: Freeze,
PhantomData<Box<(String, GroupAdminGrant)>>: Freeze,
*const LeafNode<String, Value> is !null: Freeze,
PhantomData<Box<(String, Value)>>: Freeze,
impl Move for Config
impl RefUnwindSafe for Config
impl Send for Configwhere
RawVecInner: Send,
NodeRef<Owned, String, Vec<String>, LeafOrInternal>: Send,
BoxRaw<(String, Vec<String>)>: Send,
NodeRef<Owned, String, RelayGrant, LeafOrInternal>: Send,
BoxRaw<(String, RelayGrant)>: Send,
NodeRef<Owned, String, AdminGrant, LeafOrInternal>: Send,
BoxRaw<(String, AdminGrant)>: Send,
NodeRef<Owned, String, GroupAdminGrant, LeafOrInternal>: Send,
BoxRaw<(String, GroupAdminGrant)>: Send,
NodeRef<Owned, String, Value, LeafOrInternal>: Send,
BoxRaw<(String, Value)>: Send,
impl Sync for Configwhere
RawVecInner: Sync,
NodeRef<Owned, String, Vec<String>, LeafOrInternal>: Sync,
BoxRaw<(String, Vec<String>)>: Sync,
NodeRef<Owned, String, RelayGrant, LeafOrInternal>: Sync,
BoxRaw<(String, RelayGrant)>: Sync,
NodeRef<Owned, String, AdminGrant, LeafOrInternal>: Sync,
BoxRaw<(String, AdminGrant)>: Sync,
NodeRef<Owned, String, GroupAdminGrant, LeafOrInternal>: Sync,
BoxRaw<(String, GroupAdminGrant)>: Sync,
NodeRef<Owned, String, Value, LeafOrInternal>: Sync,
BoxRaw<(String, Value)>: Sync,
impl Unpin for Configwhere
*const u8 is !null: Unpin,
*const LeafNode<String, Vec<String>> is !null: Unpin,
Box<(String, Vec<String>)>: Unpin,
*const LeafNode<String, RelayGrant> is !null: Unpin,
Box<(String, RelayGrant)>: Unpin,
*const LeafNode<String, AdminGrant> is !null: Unpin,
Box<(String, AdminGrant)>: Unpin,
*const LeafNode<String, GroupAdminGrant> is !null: Unpin,
Box<(String, GroupAdminGrant)>: Unpin,
*const LeafNode<String, Value> is !null: Unpin,
Box<(String, Value)>: Unpin,
impl UnsafeUnpin for Configwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<Rule>: UnsafeUnpin,
*const LeafNode<String, Vec<String>> is !null: UnsafeUnpin,
PhantomData<(Owned, LeafOrInternal)>: UnsafeUnpin,
PhantomData<Box<(String, Vec<String>)>>: UnsafeUnpin,
*const LeafNode<String, RelayGrant> is !null: UnsafeUnpin,
PhantomData<Box<(String, RelayGrant)>>: UnsafeUnpin,
*const LeafNode<String, AdminGrant> is !null: UnsafeUnpin,
PhantomData<Box<(String, AdminGrant)>>: UnsafeUnpin,
*const LeafNode<String, GroupAdminGrant> is !null: UnsafeUnpin,
PhantomData<Box<(String, GroupAdminGrant)>>: UnsafeUnpin,
*const LeafNode<String, Value> is !null: UnsafeUnpin,
PhantomData<Box<(String, Value)>>: UnsafeUnpin,
impl UnwindSafe for Configwhere
RawVecInner: UnwindSafe,
BTreeMap<String, Vec<String>>: UnwindSafe,
BTreeMap<String, RelayGrant>: UnwindSafe,
BTreeMap<String, AdminGrant>: UnwindSafe,
BTreeMap<String, GroupAdminGrant>: UnwindSafe,
BTreeMap<String, Value>: UnwindSafe,
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