pub enum Edge {
Certification(Certification),
Delegation(Delegation),
}Expand description
An edge in the WoT network (either a Certification or a Delegation)
Variants§
Certification(Certification)
Delegation(Delegation)
Implementations§
Source§impl Edge
impl Edge
pub fn issuer(&self) -> &Certificate
pub fn target(&self) -> &Certificate
pub fn is_delegation(&self) -> bool
pub fn trust_amount(&self) -> u8
pub fn trust_depth(&self) -> TrustDepth
Trait Implementations§
impl Eq for Edge
impl StructuralPartialEq for Edge
Auto Trait Implementations§
impl Freeze for Edge
impl RefUnwindSafe for Edge
impl Send for Edge
impl Sync for Edge
impl Unpin for Edge
impl UnwindSafe for Edge
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