pub struct PrincipalSpec {
pub cn: Option<String>,
pub zid: Option<String>,
pub id: Option<String>,
pub role: Role,
pub origin: Option<String>,
pub machine_id: Option<String>,
pub adv: bool,
pub blob_seed: bool,
pub media: bool,
pub remote_actions: bool,
}Expand description
One enrolled transport identity.
Fields§
§cn: Option<String>The certificate common name — the one subject property that is backed by authentication (RFC 03 §4 D6).
zid: Option<String>A zenoh id, for prototyping only (--allow-zid-subjects).
id: Option<String>The subject id in the emitted config. Defaults to the CN (or the zid).
role: Role§origin: Option<String>The origin this principal acts as: h-… for a host, @… for a
service. Defaults to @catalog for a catalog and @desired for a
desired-author; required (or derived) for a host.
machine_id: Option<String>The host’s /etc/machine-id, from which the origin is computed
with the RFC 06 §1 derivation and fleet.salt.
adv: boolThe principal uses the @adv sidecars (RFC 04 §3.3).
blob_seed: boolThe host seeds the router @blob content store (RFC 07 §2).
media: boolThe host publishes @media streams (RFC 07 §1).
remote_actions: boolA console that may invoke write procedures: drops the
no-remote-actions deny. A watch is read-only by definition and
refuses this.
Trait Implementations§
Source§impl Clone for PrincipalSpec
impl Clone for PrincipalSpec
Source§fn clone(&self) -> PrincipalSpec
fn clone(&self) -> PrincipalSpec
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for PrincipalSpec
impl Debug for PrincipalSpec
Source§impl Default for PrincipalSpec
impl Default for PrincipalSpec
Source§fn default() -> PrincipalSpec
fn default() -> PrincipalSpec
Source§impl<'de> Deserialize<'de> for PrincipalSpec
impl<'de> Deserialize<'de> for PrincipalSpec
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>,
Auto Trait Implementations§
impl Freeze for PrincipalSpec
impl RefUnwindSafe for PrincipalSpec
impl Send for PrincipalSpec
impl Sync for PrincipalSpec
impl Unpin for PrincipalSpec
impl UnsafeUnpin for PrincipalSpec
impl UnwindSafe for PrincipalSpec
Blanket Implementations§
Source§impl<Source> AccessAs for Source
impl<Source> AccessAs for Source
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
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> ⓘ
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> ⓘ
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