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: String
The domain of the relying party
name: Option<String>
A human friendly name for the Relying Party
Trait Implementations§
source§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.
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