pub struct Device {
pub id: String,
pub name: String,
pub scope: String,
pub ephemeral: bool,
pub agent: String,
pub fingerprint: String,
pub public_key: String,
pub authkey_id: Option<String>,
pub created_at: String,
pub last_seen: Option<String>,
pub revoked_at: Option<String>,
}Expand description
One device, as GET /v1/devices lists it and as approving or revoking
one answers.
Absent timestamps and ids are null, never omitted, so every key is
always there to read.
Fields§
§id: Stringdev_ and 26 characters: the keyid it signs with.
name: StringWhat the owner sees it as.
scope: String§ephemeral: boolWhether it is removed after being idle for a while.
agent: StringThe agent it enrolled with.
fingerprint: StringSee signature::fingerprint: what the machine showed when it
enrolled, to compare against.
public_key: StringIts Ed25519 public key, base64url without padding.
authkey_id: Option<String>The authkey it enrolled with, or null when a person
approved it.
created_at: StringWhen it was approved.
last_seen: Option<String>When it last made a signed request, to within a minute; null
before its first.
revoked_at: Option<String>When it was revoked; null while it is not.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Device
impl<'de> Deserialize<'de> for Device
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
impl Eq for Device
impl StructuralPartialEq for Device
Auto Trait Implementations§
impl Freeze for Device
impl RefUnwindSafe for Device
impl Send for Device
impl Sync for Device
impl Unpin for Device
impl UnsafeUnpin for Device
impl UnwindSafe for Device
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.