Struct trust_graph::TrustNode [−][src]
An element of trust graph that store relations (trust or revoke) that given by some owners of public keys.
Fields
pk: PublicKey
identity key of this element
verified_at: Duration
for maintain
Implementations
impl TrustNode
[src]
pub fn new(pk: PublicKey, verified_at: Duration) -> Self
[src]
pub fn get_auth(&self, pk: PublicKey) -> Option<Auth>
[src]
pub fn get_revoke(&self, pk: PublicKey) -> Option<Revoke>
[src]
pub fn authorizations(&self) -> impl Iterator<Item = &Auth> + '_
[src]
pub fn revocations(&self) -> impl Iterator<Item = &Revoke> + '_
[src]
pub fn update_auth(&mut self, auth: Auth)
[src]
Adds authorization. If the trust node already has this authorization, add auth with later expiration date.
pub fn update_revoke(&mut self, revoke: Revoke)
[src]
Trait Implementations
impl Clone for TrustNode
[src]
impl Debug for TrustNode
[src]
impl<'de> Deserialize<'de> for TrustNode
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl Serialize for TrustNode
[src]
Auto Trait Implementations
impl RefUnwindSafe for TrustNode
impl Send for TrustNode
impl Sync for TrustNode
impl Unpin for TrustNode
impl UnwindSafe for TrustNode
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,