pub struct ControlAuthority {
pub source: ControlAuthoritySource,
pub evidence: AuthorityEvidence,
}Expand description
ControlAuthority
Fields§
§source: ControlAuthoritySource§evidence: AuthorityEvidenceImplementations§
Source§impl ControlAuthority
impl ControlAuthority
pub const fn unknown() -> Self
pub const fn root_controller(evidence: AuthorityEvidence) -> Self
pub const fn operator_controller(evidence: AuthorityEvidence) -> Self
pub fn alternate_controller( controller: impl Into<String>, reason: impl Into<String>, evidence: AuthorityEvidence, ) -> Self
pub fn is_proven(&self) -> bool
pub fn is_proven_root_controller(&self) -> bool
Trait Implementations§
Source§impl Clone for ControlAuthority
impl Clone for ControlAuthority
Source§fn clone(&self) -> ControlAuthority
fn clone(&self) -> ControlAuthority
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ControlAuthority
impl Debug for ControlAuthority
Source§impl<'de> Deserialize<'de> for ControlAuthority
impl<'de> Deserialize<'de> for ControlAuthority
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
Source§impl PartialEq for ControlAuthority
impl PartialEq for ControlAuthority
Source§fn eq(&self, other: &ControlAuthority) -> bool
fn eq(&self, other: &ControlAuthority) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ControlAuthority
impl Serialize for ControlAuthority
impl Eq for ControlAuthority
impl StructuralPartialEq for ControlAuthority
Auto Trait Implementations§
impl Freeze for ControlAuthority
impl RefUnwindSafe for ControlAuthority
impl Send for ControlAuthority
impl Sync for ControlAuthority
impl Unpin for ControlAuthority
impl UnsafeUnpin for ControlAuthority
impl UnwindSafe for ControlAuthority
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