pub struct VirtualAuthenticatorOptions {Show 13 fields
pub protocol: AuthenticatorProtocol,
pub ctap2_version: Option<Ctap2Version>,
pub transport: AuthenticatorTransport,
pub has_resident_key: Option<bool>,
pub has_user_verification: Option<bool>,
pub has_large_blob: Option<bool>,
pub has_cred_blob: Option<bool>,
pub has_min_pin_length: Option<bool>,
pub has_prf: Option<bool>,
pub automatic_presence_simulation: Option<bool>,
pub is_user_verified: Option<bool>,
pub default_backup_eligibility: Option<bool>,
pub default_backup_state: Option<bool>,
}
Fields§
§protocol: AuthenticatorProtocol
§ctap2_version: Option<Ctap2Version>
Defaults to ctap2_0. Ignored if |protocol| == u2f.
transport: AuthenticatorTransport
§has_resident_key: Option<bool>
Defaults to false.
has_user_verification: Option<bool>
Defaults to false.
has_large_blob: Option<bool>
If set to true, the authenticator will support the largeBlob extension. https://w3c.github.io/webauthn#largeBlob Defaults to false.
has_cred_blob: Option<bool>
If set to true, the authenticator will support the credBlob extension. https://fidoalliance.org/specs/fido-v2.1-rd-20201208/fido-client-to-authenticator-protocol-v2.1-rd-20201208.html#sctn-credBlob-extension Defaults to false.
has_min_pin_length: Option<bool>
If set to true, the authenticator will support the minPinLength extension. https://fidoalliance.org/specs/fido-v2.1-ps-20210615/fido-client-to-authenticator-protocol-v2.1-ps-20210615.html#sctn-minpinlength-extension Defaults to false.
has_prf: Option<bool>
If set to true, the authenticator will support the prf extension. https://w3c.github.io/webauthn/#prf-extension Defaults to false.
automatic_presence_simulation: Option<bool>
If set to true, tests of user presence will succeed immediately. Otherwise, they will not be resolved. Defaults to true.
is_user_verified: Option<bool>
Sets whether User Verification succeeds or fails for an authenticator. Defaults to false.
default_backup_eligibility: Option<bool>
Credentials created by this authenticator will have the backup eligibility (BE) flag set to this value. Defaults to false. https://w3c.github.io/webauthn/#sctn-credential-backup
default_backup_state: Option<bool>
Credentials created by this authenticator will have the backup state (BS) flag set to this value. Defaults to false. https://w3c.github.io/webauthn/#sctn-credential-backup
Implementations§
Source§impl VirtualAuthenticatorOptions
impl VirtualAuthenticatorOptions
pub fn new( protocol: impl Into<AuthenticatorProtocol>, transport: impl Into<AuthenticatorTransport>, ) -> VirtualAuthenticatorOptions
Source§impl VirtualAuthenticatorOptions
impl VirtualAuthenticatorOptions
pub const IDENTIFIER: &'static str = "WebAuthn.VirtualAuthenticatorOptions"
Trait Implementations§
Source§impl Clone for VirtualAuthenticatorOptions
impl Clone for VirtualAuthenticatorOptions
Source§fn clone(&self) -> VirtualAuthenticatorOptions
fn clone(&self) -> VirtualAuthenticatorOptions
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for VirtualAuthenticatorOptions
impl Debug for VirtualAuthenticatorOptions
Source§impl<'de> Deserialize<'de> for VirtualAuthenticatorOptions
impl<'de> Deserialize<'de> for VirtualAuthenticatorOptions
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<VirtualAuthenticatorOptions, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<VirtualAuthenticatorOptions, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Source§impl Serialize for VirtualAuthenticatorOptions
impl Serialize for VirtualAuthenticatorOptions
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
impl StructuralPartialEq for VirtualAuthenticatorOptions
Auto Trait Implementations§
impl Freeze for VirtualAuthenticatorOptions
impl RefUnwindSafe for VirtualAuthenticatorOptions
impl Send for VirtualAuthenticatorOptions
impl Sync for VirtualAuthenticatorOptions
impl Unpin for VirtualAuthenticatorOptions
impl UnwindSafe for VirtualAuthenticatorOptions
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more