pub enum Qr {
Show 16 variants
AskVerifyContact {
contact_id: ContactId,
fingerprint: Fingerprint,
invitenumber: String,
authcode: String,
},
AskVerifyGroup {
grpname: String,
grpid: String,
contact_id: ContactId,
fingerprint: Fingerprint,
invitenumber: String,
authcode: String,
},
FprOk {
contact_id: ContactId,
},
FprMismatch {
contact_id: Option<ContactId>,
},
FprWithoutAddr {
fingerprint: String,
},
Account {
domain: String,
},
Backup {
ticket: Ticket,
},
WebrtcInstance {
domain: String,
instance_pattern: String,
},
Addr {
contact_id: ContactId,
draft: Option<String>,
},
Url {
url: String,
},
Text {
text: String,
},
WithdrawVerifyContact {
contact_id: ContactId,
fingerprint: Fingerprint,
invitenumber: String,
authcode: String,
},
WithdrawVerifyGroup {
grpname: String,
grpid: String,
contact_id: ContactId,
fingerprint: Fingerprint,
invitenumber: String,
authcode: String,
},
ReviveVerifyContact {
contact_id: ContactId,
fingerprint: Fingerprint,
invitenumber: String,
authcode: String,
},
ReviveVerifyGroup {
grpname: String,
grpid: String,
contact_id: ContactId,
fingerprint: Fingerprint,
invitenumber: String,
authcode: String,
},
Login {
address: String,
options: LoginOptions,
},
}
Expand description
Scanned QR code.
Variants§
AskVerifyContact
Fields
fingerprint: Fingerprint
Fingerprint of the contact key as scanned from the QR code.
Ask the user whether to verify the contact.
If the user agrees, pass this QR code to crate::securejoin::join_securejoin
.
AskVerifyGroup
Fields
fingerprint: Fingerprint
Fingerprint of the contact key as scanned from the QR code.
Ask the user whether to join the group.
FprOk
Contact fingerprint is verified.
Ask the user if they want to start chatting.
FprMismatch
Scanned fingerprint does not match the last seen fingerprint.
FprWithoutAddr
The scanned QR code contains a fingerprint but no e-mail address.
Account
Ask the user if they want to create an account on the given domain.
Backup
Fields
ticket: Ticket
Printable version of the provider information.
This is the printable version of a sendme
ticket, which contains all the
information to connect to and authenticate a backup provider.
The format is somewhat opaque, but sendme
can deserialise this.
Provides a backup that can be retrieve.
This contains all the data needed to connect to a device and download a backup from it to configure the receiving device with the same account.
WebrtcInstance
Ask the user if they want to use the given service for video chats.
Addr
Contact address is scanned.
Optionally, a draft message could be provided. Ask the user if they want to start chatting.
Url
URL scanned.
Ask the user if they want to open a browser or copy the URL to clipboard.
Text
Text scanned.
Ask the user if they want to copy the text to clipboard.
WithdrawVerifyContact
Fields
fingerprint: Fingerprint
Fingerprint of the contact key as scanned from the QR code.
Ask the user if they want to withdraw their own QR code.
WithdrawVerifyGroup
Fields
fingerprint: Fingerprint
Fingerprint of the contact key as scanned from the QR code.
Ask the user if they want to withdraw their own group invite QR code.
ReviveVerifyContact
Fields
fingerprint: Fingerprint
Fingerprint of the contact key as scanned from the QR code.
Ask the user if they want to revive their own QR code.
ReviveVerifyGroup
Fields
fingerprint: Fingerprint
Fingerprint of the contact key as scanned from the QR code.
Ask the user if they want to revive their own group invite QR code.
Login
dclogin:
scheme parameters.
Ask the user if they want to login with the email address.
Implementations§
Trait Implementations§
impl Eq for Qr
impl StructuralPartialEq for Qr
Auto Trait Implementations§
impl RefUnwindSafe for Qr
impl Send for Qr
impl Sync for Qr
impl Unpin for Qr
impl UnwindSafe for Qr
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
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.