pub struct PasskeyRegistrationOptions {
pub require_session: bool,
pub resolve_user: Option<Arc<dyn Fn(ResolveRegistrationUserInput) -> Pin<Box<dyn Future<Output = Option<PasskeyRegistrationUser>> + Send + 'static>> + Send + Sync>>,
pub after_verification: Option<Arc<dyn Fn(AfterRegistrationVerificationInput) -> Pin<Box<dyn Future<Output = Option<String>> + Send + 'static>> + Send + Sync>>,
pub extensions: Option<Arc<dyn Fn(PasskeyExtensionsInput) -> Pin<Box<dyn Future<Output = Option<Value>> + Send + 'static>> + Send + Sync>>,
}Fields§
§require_session: bool§resolve_user: Option<Arc<dyn Fn(ResolveRegistrationUserInput) -> Pin<Box<dyn Future<Output = Option<PasskeyRegistrationUser>> + Send + 'static>> + Send + Sync>>§after_verification: Option<Arc<dyn Fn(AfterRegistrationVerificationInput) -> Pin<Box<dyn Future<Output = Option<String>> + Send + 'static>> + Send + Sync>>§extensions: Option<Arc<dyn Fn(PasskeyExtensionsInput) -> Pin<Box<dyn Future<Output = Option<Value>> + Send + 'static>> + Send + Sync>>Implementations§
Source§impl PasskeyRegistrationOptions
impl PasskeyRegistrationOptions
pub fn new() -> Self
pub fn require_session(self, require_session: bool) -> Self
pub fn resolve_user<F>(self, resolver: F) -> Selfwhere
F: Fn(ResolveRegistrationUserInput) -> Option<PasskeyRegistrationUser> + Send + Sync + 'static,
pub fn resolve_user_async<F, Fut>(self, resolver: F) -> Selfwhere
F: Fn(ResolveRegistrationUserInput) -> Fut + Send + Sync + 'static,
Fut: Future<Output = Option<PasskeyRegistrationUser>> + Send + 'static,
pub fn after_verification<F>(self, callback: F) -> Self
pub fn after_verification_async<F, Fut>(self, callback: F) -> Self
pub fn extensions(self, extensions: Value) -> Self
pub fn extensions_resolver<F, Fut>(self, resolver: F) -> Self
Trait Implementations§
Source§impl Clone for PasskeyRegistrationOptions
impl Clone for PasskeyRegistrationOptions
Source§fn clone(&self) -> PasskeyRegistrationOptions
fn clone(&self) -> PasskeyRegistrationOptions
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 moreAuto Trait Implementations§
impl !RefUnwindSafe for PasskeyRegistrationOptions
impl !UnwindSafe for PasskeyRegistrationOptions
impl Freeze for PasskeyRegistrationOptions
impl Send for PasskeyRegistrationOptions
impl Sync for PasskeyRegistrationOptions
impl Unpin for PasskeyRegistrationOptions
impl UnsafeUnpin for PasskeyRegistrationOptions
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