pub struct PublicKeyCredentialRpEntity {
pub id: String,
pub name: Option<String>,
}Expand description
This is a copy of webauthn::PublicKeyCredentialRpEntity but where the id is required
and the name is optional which is the inverse of what is defined in the WebAuthn. These are
the requirements of the CTAP2 version of this struct.
Fields§
§id: StringThe domain of the relying party
name: Option<String>A human friendly name for the Relying Party
Trait Implementations§
Source§impl Clone for PublicKeyCredentialRpEntity
impl Clone for PublicKeyCredentialRpEntity
Source§fn clone(&self) -> PublicKeyCredentialRpEntity
fn clone(&self) -> PublicKeyCredentialRpEntity
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PublicKeyCredentialRpEntity
impl Debug for PublicKeyCredentialRpEntity
Source§impl<'de> Deserialize<'de> for PublicKeyCredentialRpEntity
impl<'de> Deserialize<'de> for PublicKeyCredentialRpEntity
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 TryFrom<PublicKeyCredentialRpEntity> for PublicKeyCredentialRpEntity
impl TryFrom<PublicKeyCredentialRpEntity> for PublicKeyCredentialRpEntity
Source§fn try_from(value: PublicKeyCredentialRpEntity) -> Result<Self, Self::Error>
fn try_from(value: PublicKeyCredentialRpEntity) -> Result<Self, Self::Error>
Convert the webauthn version of the struct to the CTAP2 version with the effective domain if the id was not provided.
Source§type Error = MissingRpId
type Error = MissingRpId
The type returned in the event of a conversion error.
impl Eq for PublicKeyCredentialRpEntity
impl StructuralPartialEq for PublicKeyCredentialRpEntity
Auto Trait Implementations§
impl Freeze for PublicKeyCredentialRpEntity
impl RefUnwindSafe for PublicKeyCredentialRpEntity
impl Send for PublicKeyCredentialRpEntity
impl Sync for PublicKeyCredentialRpEntity
impl Unpin for PublicKeyCredentialRpEntity
impl UnwindSafe for PublicKeyCredentialRpEntity
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.