pub struct CredentialDescriptor {
pub id: Vec<u8>,
pub credential_type: CredentialType,
}Expand description
A credential descriptor identifying a specific credential
Used in getAssertion to specify which credentials are allowed.
Fields§
§id: Vec<u8>The credential ID
credential_type: CredentialTypeThe type of credential (typically PublicKey)
Implementations§
Source§impl CredentialDescriptor
impl CredentialDescriptor
Sourcepub fn new(id: Vec<u8>, credential_type: CredentialType) -> Self
pub fn new(id: Vec<u8>, credential_type: CredentialType) -> Self
Create a new credential descriptor
Sourcepub fn public_key(id: Vec<u8>) -> Self
pub fn public_key(id: Vec<u8>) -> Self
Create a public key credential descriptor (convenience method)
Trait Implementations§
Source§impl Clone for CredentialDescriptor
impl Clone for CredentialDescriptor
Source§fn clone(&self) -> CredentialDescriptor
fn clone(&self) -> CredentialDescriptor
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 CredentialDescriptor
impl Debug for CredentialDescriptor
Source§impl PartialEq for CredentialDescriptor
impl PartialEq for CredentialDescriptor
impl Eq for CredentialDescriptor
impl StructuralPartialEq for CredentialDescriptor
Auto Trait Implementations§
impl Freeze for CredentialDescriptor
impl RefUnwindSafe for CredentialDescriptor
impl Send for CredentialDescriptor
impl Sync for CredentialDescriptor
impl Unpin for CredentialDescriptor
impl UnwindSafe for CredentialDescriptor
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