pub struct PairTokenIssued {
pub token: String,
pub principal: PrincipalId,
pub expires_at_epoch: u64,
pub label: Option<String>,
}Expand description
Response payload for AdminRequestKind::PairDeviceIssue.
Fields§
§token: StringOpaque token. The issuing device hands this to the new device out-of-band (QR code, NFC, manual copy).
principal: PrincipalIdPrincipal the new device’s key will attach to (always the caller, never request-body derived).
expires_at_epoch: u64Wall-clock Unix-epoch timestamp at which the token expires.
label: Option<String>Operator-supplied label (echoed; not yet bound).
Trait Implementations§
Source§impl Clone for PairTokenIssued
impl Clone for PairTokenIssued
Source§fn clone(&self) -> PairTokenIssued
fn clone(&self) -> PairTokenIssued
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PairTokenIssued
impl Debug for PairTokenIssued
Source§impl<'de> Deserialize<'de> for PairTokenIssued
impl<'de> Deserialize<'de> for PairTokenIssued
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 PairTokenIssued
Source§impl PartialEq for PairTokenIssued
impl PartialEq for PairTokenIssued
Source§fn eq(&self, other: &PairTokenIssued) -> bool
fn eq(&self, other: &PairTokenIssued) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for PairTokenIssued
impl Serialize for PairTokenIssued
impl StructuralPartialEq for PairTokenIssued
Auto Trait Implementations§
impl Freeze for PairTokenIssued
impl RefUnwindSafe for PairTokenIssued
impl Send for PairTokenIssued
impl Sync for PairTokenIssued
impl Unpin for PairTokenIssued
impl UnsafeUnpin for PairTokenIssued
impl UnwindSafe for PairTokenIssued
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.