Enum deltachat::securejoin::qrinvite::QrInvite
source · pub enum QrInvite {
Contact {
contact_id: ContactId,
fingerprint: Fingerprint,
invitenumber: String,
authcode: String,
},
Group {
contact_id: ContactId,
fingerprint: Fingerprint,
name: String,
grpid: String,
invitenumber: String,
authcode: String,
},
}
Expand description
Represents the data from a QR-code scan.
There are methods to conveniently access fields present in both variants.
Variants§
Implementations§
source§impl QrInvite
impl QrInvite
sourcepub fn contact_id(&self) -> ContactId
pub fn contact_id(&self) -> ContactId
The contact ID of the inviter.
The actual QR-code contains a URL-encoded email address, but upon scanning this is translated to a contact ID.
sourcepub fn fingerprint(&self) -> &Fingerprint
pub fn fingerprint(&self) -> &Fingerprint
The fingerprint of the inviter.
sourcepub fn invitenumber(&self) -> &str
pub fn invitenumber(&self) -> &str
The INVITENUMBER
of the setup-contact/secure-join protocol.
Trait Implementations§
source§impl<'de> Deserialize<'de> for QrInvite
impl<'de> Deserialize<'de> for QrInvite
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
source§impl FromSql for QrInvite
impl FromSql for QrInvite
source§fn column_result(value: ValueRef<'_>) -> FromSqlResult<Self>
fn column_result(value: ValueRef<'_>) -> FromSqlResult<Self>
Converts SQLite value into Rust value.
Auto Trait Implementations§
impl Freeze for QrInvite
impl RefUnwindSafe for QrInvite
impl Send for QrInvite
impl Sync for QrInvite
impl Unpin for QrInvite
impl UnwindSafe for QrInvite
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)