pub struct EnrollPending {
pub enrollment_id: String,
pub user_code: String,
pub expires_in: u64,
pub interval: u64,
}Expand description
POST /v1/devices/enroll without an authkey: RFC 8628 §3.2’s
device authorization response, with the enrolment id in the place of
its device_code.
Fields§
§enrollment_id: StringWhat the machine polls with. A secret: whoever holds it learns the device id once approved.
user_code: StringWhat the owner approves, formatted as normalize_user_code does.
expires_in: u64Seconds until the code expires.
interval: u64Seconds to wait between polls.
Trait Implementations§
Source§impl Clone for EnrollPending
impl Clone for EnrollPending
Source§impl Debug for EnrollPending
impl Debug for EnrollPending
Source§impl Default for EnrollPending
impl Default for EnrollPending
Source§impl<'de> Deserialize<'de> for EnrollPending
impl<'de> Deserialize<'de> for EnrollPending
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 EnrollPending
Source§impl PartialEq for EnrollPending
impl PartialEq for EnrollPending
Source§impl Serialize for EnrollPending
impl Serialize for EnrollPending
impl StructuralPartialEq for EnrollPending
Auto Trait Implementations§
impl Freeze for EnrollPending
impl RefUnwindSafe for EnrollPending
impl Send for EnrollPending
impl Sync for EnrollPending
impl Unpin for EnrollPending
impl UnsafeUnpin for EnrollPending
impl UnwindSafe for EnrollPending
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.