pub struct AuthkeyCreated {
pub id: String,
pub key: String,
pub tag: String,
pub ephemeral: bool,
pub max_devices: Option<u32>,
pub created_at: String,
pub expires_at: String,
}Expand description
POST /v1/authkeys: the new key, the one time it is ever shown.
Fields§
§id: StringAs in Authkey.
key: StringThe key: AUTHKEY_PREFIX and 52 characters. The server keeps
only its SHA-256.
tag: StringAs in Authkey.
ephemeral: boolAs in Authkey.
max_devices: Option<u32>As in Authkey.
created_at: StringAs in Authkey.
expires_at: StringAs in Authkey.
Trait Implementations§
Source§impl Clone for AuthkeyCreated
impl Clone for AuthkeyCreated
Source§impl Debug for AuthkeyCreated
impl Debug for AuthkeyCreated
Source§impl Default for AuthkeyCreated
impl Default for AuthkeyCreated
Source§impl<'de> Deserialize<'de> for AuthkeyCreated
impl<'de> Deserialize<'de> for AuthkeyCreated
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 AuthkeyCreated
Source§impl PartialEq for AuthkeyCreated
impl PartialEq for AuthkeyCreated
Source§impl Serialize for AuthkeyCreated
impl Serialize for AuthkeyCreated
impl StructuralPartialEq for AuthkeyCreated
Auto Trait Implementations§
impl Freeze for AuthkeyCreated
impl RefUnwindSafe for AuthkeyCreated
impl Send for AuthkeyCreated
impl Sync for AuthkeyCreated
impl Unpin for AuthkeyCreated
impl UnsafeUnpin for AuthkeyCreated
impl UnwindSafe for AuthkeyCreated
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.