pub enum PhoneFrame {
Hello {
code: PairingCode,
identity: PortableUserId,
},
Credential {
credential: Box<UserDeviceCredential>,
state: Option<Box<PortableIdentityState>>,
servers: Vec<PairedServer>,
},
Declined,
}Expand description
What the phone sends.
Variants§
Hello
The code from the QR code, and the identity the device is to act as. First, and only once.
Credential
The root’s credential for the key DeviceFrame::Key gave, the
identity’s newest state if the phone has one, and the servers the
identity signs in to, for the device to save and sign in
to.
Fields
§
credential: Box<UserDeviceCredential>§
state: Option<Box<PortableIdentityState>>§
servers: Vec<PairedServer>Declined
The person on the phone said no.
Trait Implementations§
Source§impl Clone for PhoneFrame
impl Clone for PhoneFrame
Source§impl Debug for PhoneFrame
impl Debug for PhoneFrame
Source§impl<'de> Deserialize<'de> for PhoneFrame
impl<'de> Deserialize<'de> for PhoneFrame
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 PhoneFrame
Source§impl PartialEq for PhoneFrame
impl PartialEq for PhoneFrame
Source§impl Serialize for PhoneFrame
impl Serialize for PhoneFrame
impl StructuralPartialEq for PhoneFrame
Auto Trait Implementations§
impl Forget for PhoneFrame
impl Freeze for PhoneFrame
impl Move for PhoneFrame
impl RefUnwindSafe for PhoneFrame
impl Send for PhoneFrame
impl Sync for PhoneFrame
impl Unpin for PhoneFrame
impl UnsafeUnpin for PhoneFrame
impl UnwindSafe for PhoneFrame
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