pub struct PasskeyAuthenticationOptions {
pub after_verification: Option<Arc<dyn Fn(AfterAuthenticationVerificationInput) -> Pin<Box<dyn Future<Output = Result<(), PasskeyAuthenticationRejected>> + Send + 'static>> + Send + Sync>>,
pub extensions: Option<Arc<dyn Fn(PasskeyExtensionsInput) -> Pin<Box<dyn Future<Output = Option<Value>> + Send + 'static>> + Send + Sync>>,
}Fields§
§after_verification: Option<Arc<dyn Fn(AfterAuthenticationVerificationInput) -> Pin<Box<dyn Future<Output = Result<(), PasskeyAuthenticationRejected>> + Send + 'static>> + Send + Sync>>§extensions: Option<Arc<dyn Fn(PasskeyExtensionsInput) -> Pin<Box<dyn Future<Output = Option<Value>> + Send + 'static>> + Send + Sync>>Implementations§
Source§impl PasskeyAuthenticationOptions
impl PasskeyAuthenticationOptions
pub fn new() -> Self
pub fn after_verification<F>(self, callback: F) -> Self
pub fn after_verification_async<F, Fut>(self, callback: F) -> Selfwhere
F: Fn(AfterAuthenticationVerificationInput) -> Fut + Send + Sync + 'static,
Fut: Future<Output = Result<(), PasskeyAuthenticationRejected>> + Send + 'static,
pub fn extensions(self, extensions: Value) -> Self
pub fn extensions_resolver<F, Fut>(self, resolver: F) -> Self
Trait Implementations§
Source§impl Clone for PasskeyAuthenticationOptions
impl Clone for PasskeyAuthenticationOptions
Source§fn clone(&self) -> PasskeyAuthenticationOptions
fn clone(&self) -> PasskeyAuthenticationOptions
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Default for PasskeyAuthenticationOptions
impl Default for PasskeyAuthenticationOptions
Source§fn default() -> PasskeyAuthenticationOptions
fn default() -> PasskeyAuthenticationOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !RefUnwindSafe for PasskeyAuthenticationOptions
impl !UnwindSafe for PasskeyAuthenticationOptions
impl Freeze for PasskeyAuthenticationOptions
impl Send for PasskeyAuthenticationOptions
impl Sync for PasskeyAuthenticationOptions
impl Unpin for PasskeyAuthenticationOptions
impl UnsafeUnpin for PasskeyAuthenticationOptions
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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