pub struct VirtualAuthenticatorOptionsBuilder { /* private fields */ }Available on crate features
experimental and WebAuthn only.Implementations§
Source§impl VirtualAuthenticatorOptionsBuilder
impl VirtualAuthenticatorOptionsBuilder
pub fn protocol(&mut self, v: AuthenticatorProtocol) -> &mut Self
Sourcepub fn ctap2_version(&mut self, v: Ctap2Version) -> &mut Self
pub fn ctap2_version(&mut self, v: Ctap2Version) -> &mut Self
Defaults to ctap2_0. Ignored if |protocol| == u2f.
pub fn transport(&mut self, v: AuthenticatorTransport) -> &mut Self
Sourcepub fn has_resident_key(&mut self, v: bool) -> &mut Self
pub fn has_resident_key(&mut self, v: bool) -> &mut Self
Defaults to false.
Sourcepub fn has_user_verification(&mut self, v: bool) -> &mut Self
pub fn has_user_verification(&mut self, v: bool) -> &mut Self
Defaults to false.
Sourcepub fn has_large_blob(&mut self, v: bool) -> &mut Self
pub fn has_large_blob(&mut self, v: bool) -> &mut Self
If set to true, the authenticator will support the largeBlob extension. https://w3c.github.io/webauthn#largeBlob Defaults to false.
Sourcepub fn automatic_presence_simulation(&mut self, v: bool) -> &mut Self
pub fn automatic_presence_simulation(&mut self, v: bool) -> &mut Self
If set to true, tests of user presence will succeed immediately. Otherwise, they will not be resolved. Defaults to true.
Sourcepub fn is_user_verified(&mut self, v: bool) -> &mut Self
pub fn is_user_verified(&mut self, v: bool) -> &mut Self
Sets whether User Verification succeeds or fails for an authenticator. Defaults to false.
pub fn build(&mut self) -> Result<VirtualAuthenticatorOptions, &'static str>
Trait Implementations§
Source§impl Clone for VirtualAuthenticatorOptionsBuilder
impl Clone for VirtualAuthenticatorOptionsBuilder
Source§fn clone(&self) -> VirtualAuthenticatorOptionsBuilder
fn clone(&self) -> VirtualAuthenticatorOptionsBuilder
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 moreAuto Trait Implementations§
impl Freeze for VirtualAuthenticatorOptionsBuilder
impl RefUnwindSafe for VirtualAuthenticatorOptionsBuilder
impl Send for VirtualAuthenticatorOptionsBuilder
impl Sync for VirtualAuthenticatorOptionsBuilder
impl Unpin for VirtualAuthenticatorOptionsBuilder
impl UnwindSafe for VirtualAuthenticatorOptionsBuilder
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