pub struct ApproveRequest {
pub user_code: String,
pub scope: String,
pub fingerprint: Option<String>,
}Expand description
Body of POST /v1/devices/approve.
Fields§
§user_code: StringThe code the machine shows, in any case, with or without its hyphen.
scope: StringSCOPE_SYNC unless given; SCOPE_ADMIN to let the device
manage others; SCOPE_WORKER for recall-worker.
fingerprint: Option<String>The key fingerprint the approver was shown, by the machine or by
GET /v1/devices/pending/{user_code}. When given, the approval is
refused unless the code’s key has exactly this fingerprint, which
binds the approval to what the approver actually saw.
Trait Implementations§
Source§impl Clone for ApproveRequest
impl Clone for ApproveRequest
Source§impl Debug for ApproveRequest
impl Debug for ApproveRequest
Source§impl<'de> Deserialize<'de> for ApproveRequest
impl<'de> Deserialize<'de> for ApproveRequest
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 ApproveRequest
Source§impl PartialEq for ApproveRequest
impl PartialEq for ApproveRequest
Source§impl Serialize for ApproveRequest
impl Serialize for ApproveRequest
impl StructuralPartialEq for ApproveRequest
Auto Trait Implementations§
impl Freeze for ApproveRequest
impl RefUnwindSafe for ApproveRequest
impl Send for ApproveRequest
impl Sync for ApproveRequest
impl Unpin for ApproveRequest
impl UnsafeUnpin for ApproveRequest
impl UnwindSafe for ApproveRequest
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.