pub struct TrustedAgent {
pub url: String,
pub name: String,
pub role: TrustRole,
pub verification_key: Vec<u8>,
}Expand description
An agent the registry trusts, with the key used to verify its card.
Fields§
§url: StringIdentity anchor — must match the card’s url.
name: StringHuman-readable name.
role: TrustRoleRole in the trust hierarchy.
verification_key: Vec<u8>HMAC-SHA256 verification key (the same secret used to sign the card).
Implementations§
Trait Implementations§
Source§impl Clone for TrustedAgent
impl Clone for TrustedAgent
Source§fn clone(&self) -> TrustedAgent
fn clone(&self) -> TrustedAgent
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 moreAuto Trait Implementations§
impl Freeze for TrustedAgent
impl RefUnwindSafe for TrustedAgent
impl Send for TrustedAgent
impl Sync for TrustedAgent
impl Unpin for TrustedAgent
impl UnsafeUnpin for TrustedAgent
impl UnwindSafe for TrustedAgent
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