pub struct PairPayload {
pub token_id: String,
pub token_secret: String,
pub host: Option<String>,
}Expand description
Returned by PairCreate — contains the plaintext secret for the new token.
Fields§
§token_id: String§token_secret: String§host: Option<String>Optional TCP host for encoding into a QR pairing string
Implementations§
Source§impl PairPayload
impl PairPayload
Sourcepub fn pairing_string(&self) -> String
pub fn pairing_string(&self) -> String
Returns the pairing string in <token_id>:<token_secret> format.
Trait Implementations§
Source§impl Clone for PairPayload
impl Clone for PairPayload
Source§fn clone(&self) -> PairPayload
fn clone(&self) -> PairPayload
Returns a duplicate of the value. Read more
1.0.0 · 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 PairPayload
impl Debug for PairPayload
Source§impl<'de> Deserialize<'de> for PairPayload
impl<'de> Deserialize<'de> for PairPayload
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
Auto Trait Implementations§
impl Freeze for PairPayload
impl RefUnwindSafe for PairPayload
impl Send for PairPayload
impl Sync for PairPayload
impl Unpin for PairPayload
impl UnsafeUnpin for PairPayload
impl UnwindSafe for PairPayload
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