pub struct PortableSignIn {
pub credential: UserDeviceCredential,
pub proof: Signature,
pub states: Vec<PortableIdentityState>,
pub display_name: Option<String>,
}Expand description
A portable user’s device proving itself (FinishPortableSignIn,
P7-06): the credential their root gave the device’s key, and that
key’s signature over this server’s nonce.
Fields§
§credential: UserDeviceCredential§proof: SignatureThe device key’s signature over
crate::portable::device_proof_message of the server’s endpoint
id and the nonce BeginPortableSignIn gave.
states: Vec<PortableIdentityState>The identity’s states the device has, newest last, at most
MAX_SIGN_IN_STATES: the server takes them in before it checks
the credential (§48), so a device carries revocations to servers
it signs in to.
display_name: Option<String>What they would be called here, for a grant made with this sign-in (P7-05’s invite); a grant there already keeps its name.
Trait Implementations§
Source§impl Clone for PortableSignIn
impl Clone for PortableSignIn
Source§impl Debug for PortableSignIn
impl Debug for PortableSignIn
Source§impl<'de> Deserialize<'de> for PortableSignIn
impl<'de> Deserialize<'de> for PortableSignIn
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 PortableSignIn
Source§impl PartialEq for PortableSignIn
impl PartialEq for PortableSignIn
Source§impl Serialize for PortableSignIn
impl Serialize for PortableSignIn
impl StructuralPartialEq for PortableSignIn
Auto Trait Implementations§
impl Freeze for PortableSignIn
impl RefUnwindSafe for PortableSignIn
impl Send for PortableSignIn
impl Sync for PortableSignIn
impl Unpin for PortableSignIn
impl UnsafeUnpin for PortableSignIn
impl UnwindSafe for PortableSignIn
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