pub enum Qr {
Show 17 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,
},
Backup2 {
node_addr: NodeAddr,
auth_token: String,
},
WebrtcInstance {
domain: String,
instance_pattern: String,
},
Proxy {
url: String,
host: String,
port: u16,
},
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
Ask the user whether to verify the contact.
If the user agrees, pass this QR code to crate::securejoin::join_securejoin
.
Fields
fingerprint: Fingerprint
Fingerprint of the contact key as scanned from the QR code.
AskVerifyGroup
Ask the user whether to join the group.
Fields
fingerprint: Fingerprint
Fingerprint of the contact key as scanned from the QR code.
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.
Backup2
Provides a backup that can be retrieved using iroh-net based backup transfer protocol.
WebrtcInstance
Ask the user if they want to use the given service for video chats.
Proxy
Ask the user if they want to use the given proxy.
Note that HTTP(S) URLs without a path
and query parameters are treated as HTTP(S) proxy URL.
UI may want to still offer to open the URL
in the browser if QR code contents
starts with http://
or https://
and the QR code was not scanned from
the proxy configuration screen.
Fields
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
Ask the user if they want to withdraw their own QR code.
Fields
fingerprint: Fingerprint
Fingerprint of the contact key as scanned from the QR code.
WithdrawVerifyGroup
Ask the user if they want to withdraw their own group invite QR code.
Fields
fingerprint: Fingerprint
Fingerprint of the contact key as scanned from the QR code.
ReviveVerifyContact
Ask the user if they want to revive their own QR code.
Fields
fingerprint: Fingerprint
Fingerprint of the contact key as scanned from the QR code.
ReviveVerifyGroup
Ask the user if they want to revive their own group invite QR code.
Fields
fingerprint: Fingerprint
Fingerprint of the contact key as scanned from the 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 Freeze for Qr
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
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)
clone_to_uninit
)§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.