pub struct Authkey {
pub id: String,
pub tag: String,
pub ephemeral: bool,
pub max_devices: Option<u32>,
pub created_at: String,
pub expires_at: String,
pub revoked_at: Option<String>,
}Expand description
One authkey, without the key itself, which is shown only once.
Fields§
§id: Stringak_ and 16 characters. Not a secret.
tag: StringIts label.
ephemeral: boolWhether devices enrolled with it are ephemeral.
max_devices: Option<u32>The most unrevoked devices it may have enrolled at once. This
server always says; a null would mean DEFAULT_MAX_DEVICES.
created_at: StringWhen it was made.
expires_at: StringWhen it stops enrolling devices.
revoked_at: Option<String>When it was revoked; null while it is not.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Authkey
impl<'de> Deserialize<'de> for Authkey
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 Authkey
impl StructuralPartialEq for Authkey
Auto Trait Implementations§
impl Freeze for Authkey
impl RefUnwindSafe for Authkey
impl Send for Authkey
impl Sync for Authkey
impl Unpin for Authkey
impl UnsafeUnpin for Authkey
impl UnwindSafe for Authkey
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.