pub struct AuthkeyRequest {
pub tag: String,
pub expires_in_days: u32,
pub ephemeral: bool,
pub max_devices: Option<u32>,
}Expand description
Body of POST /v1/authkeys.
Fields§
§tag: StringA label, such as cloud.
expires_in_days: u32How many days the key can enrol devices for, 1 to 365. Required: there is no key that never expires.
ephemeral: boolWhether devices enrolled with it are ephemeral. true unless given:
a key is for machines that come and go.
max_devices: Option<u32>The most devices it may have enrolled and unrevoked at once, 1 or
more; DEFAULT_MAX_DEVICES when left out. An ephemeral device
swept for being idle frees its place.
Trait Implementations§
Source§impl Clone for AuthkeyRequest
impl Clone for AuthkeyRequest
Source§impl Debug for AuthkeyRequest
impl Debug for AuthkeyRequest
Source§impl Default for AuthkeyRequest
impl Default for AuthkeyRequest
Source§impl<'de> Deserialize<'de> for AuthkeyRequest
impl<'de> Deserialize<'de> for AuthkeyRequest
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 AuthkeyRequest
Source§impl PartialEq for AuthkeyRequest
impl PartialEq for AuthkeyRequest
Source§impl Serialize for AuthkeyRequest
impl Serialize for AuthkeyRequest
impl StructuralPartialEq for AuthkeyRequest
Auto Trait Implementations§
impl Freeze for AuthkeyRequest
impl RefUnwindSafe for AuthkeyRequest
impl Send for AuthkeyRequest
impl Sync for AuthkeyRequest
impl Unpin for AuthkeyRequest
impl UnsafeUnpin for AuthkeyRequest
impl UnwindSafe for AuthkeyRequest
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.