pub struct AdmissionPosture {
pub enforce: bool,
pub verdict_source_bound: bool,
pub open_membership: bool,
}Expand description
What the node’s mesh admission looks like when a binding arrives.
Fields§
§enforce: boolAdmission mode is enforce (not off or observe).
verdict_source_bound: boolA governance verdict source is bound.
open_membership: booladmission_open_membership is on.
Implementations§
Source§impl AdmissionPosture
impl AdmissionPosture
Sourcepub fn check(&self) -> Result<(), LicenceError>
pub fn check(&self) -> Result<(), LicenceError>
A binding is accepted only under enforce, with a verdict source and open membership off.
Trait Implementations§
Source§impl Clone for AdmissionPosture
impl Clone for AdmissionPosture
impl Copy for AdmissionPosture
Source§impl Debug for AdmissionPosture
impl Debug for AdmissionPosture
impl Eq for AdmissionPosture
Source§impl PartialEq for AdmissionPosture
impl PartialEq for AdmissionPosture
impl StructuralPartialEq for AdmissionPosture
Auto Trait Implementations§
impl Freeze for AdmissionPosture
impl RefUnwindSafe for AdmissionPosture
impl Send for AdmissionPosture
impl Sync for AdmissionPosture
impl Unpin for AdmissionPosture
impl UnsafeUnpin for AdmissionPosture
impl UnwindSafe for AdmissionPosture
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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§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.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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