pub struct PendingEnrollment {
pub user_code: String,
pub name: String,
pub agent: String,
pub fingerprint: String,
pub expires_in: u64,
}Expand description
GET /v1/devices/pending/{user_code}: an enrolment still waiting, as
the approver sees it before deciding. Showing enough here that a
phished approval gets noticed is what RFC 8628 §5.4 asks for.
Fields§
§user_code: StringThe code, normalized.
name: StringThe name the machine asked to be known by.
agent: StringThe agent it enrolled with.
fingerprint: StringIts key’s fingerprint (see signature::fingerprint): the machine
shows the same one, and the two should match.
expires_in: u64Seconds until the code can no longer be approved.
Trait Implementations§
Source§impl Clone for PendingEnrollment
impl Clone for PendingEnrollment
Source§impl Debug for PendingEnrollment
impl Debug for PendingEnrollment
Source§impl Default for PendingEnrollment
impl Default for PendingEnrollment
Source§impl<'de> Deserialize<'de> for PendingEnrollment
impl<'de> Deserialize<'de> for PendingEnrollment
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 PendingEnrollment
Source§impl PartialEq for PendingEnrollment
impl PartialEq for PendingEnrollment
Source§impl Serialize for PendingEnrollment
impl Serialize for PendingEnrollment
impl StructuralPartialEq for PendingEnrollment
Auto Trait Implementations§
impl Freeze for PendingEnrollment
impl RefUnwindSafe for PendingEnrollment
impl Send for PendingEnrollment
impl Sync for PendingEnrollment
impl Unpin for PendingEnrollment
impl UnsafeUnpin for PendingEnrollment
impl UnwindSafe for PendingEnrollment
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.