pub struct TrustEntry {
pub fingerprint: String,
pub label: String,
pub alias_seen: String,
pub alias_claimed: String,
pub model: Option<String>,
pub kind: Option<String>,
pub first_seen_ms: u64,
pub last_seen_ms: u64,
pub state: TrustState,
pub proof: Option<String>,
pub decided: bool,
pub refused: u64,
}Expand description
What the owner decided about one device, and what it last claimed to be.
Fields§
§fingerprint: String§label: StringThe owner’s name for the device; empty until they give one.
alias_seen: StringThe alias the device announced itself with (a claim, not an identity).
alias_claimed: StringWhat an unproven request claimed on a record that has proof; shown on
the card, never copied into alias_seen/model/kind.
model: Option<String>§kind: Option<String>§first_seen_ms: u64§last_seen_ms: u64§state: TrustState§proof: Option<String>How the device last proved the key behind its fingerprint: “certificate” or “callback”; None when it never has.
decided: boolThe owner set the state on purpose (so the record is never dropped).
refused: u64Requests answered 403 because of Deny.
Trait Implementations§
Source§impl Clone for TrustEntry
impl Clone for TrustEntry
Source§impl Debug for TrustEntry
impl Debug for TrustEntry
Source§impl<'de> Deserialize<'de> for TrustEntry
impl<'de> Deserialize<'de> for TrustEntry
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
Auto Trait Implementations§
impl Freeze for TrustEntry
impl RefUnwindSafe for TrustEntry
impl Send for TrustEntry
impl Sync for TrustEntry
impl Unpin for TrustEntry
impl UnsafeUnpin for TrustEntry
impl UnwindSafe for TrustEntry
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