pub struct RegistrationChallenge {Show 14 fields
pub ref: Option<RecordRef>,
pub challenge: Vec<u8>,
pub relying_party_id: String,
pub relying_party_name: String,
pub expires_at: Option<Timestamp>,
pub account_id: String,
pub handle: String,
pub display_name: String,
pub user_verification: i32,
pub device_binding_challenge: Vec<u8>,
pub owner_binding_nonce: Vec<u8>,
pub credential_expires_at: Option<Timestamp>,
pub method: i32,
pub oauth_provider: i32,
}Fields§
§ref: Option<RecordRef>§challenge: Vec<u8>§relying_party_id: String§relying_party_name: String§expires_at: Option<Timestamp>§account_id: StringStable UUID fixed before clients sign owner-root records. WebAuthn user.id is this string’s UTF-8 encoding, including for anonymous promotion/claim.
handle: String§display_name: String§user_verification: i32§device_binding_challenge: Vec<u8>The passkey creation uses attestation=“none”. A follow-up assertion by that passkey proves its binding to caller_public_key using these bytes. The independent CallContext signature proves possession of the device key.
owner_binding_nonce: Vec<u8>Exact 32-byte nonce for OwnerKeyBinding; no extra challenge RPC is needed.
credential_expires_at: Option<Timestamp>Prospective credential lifetime, independent of ten-minute ceremony expiry. Owner-signed mint-root attachments may use this exact upper bound.
method: i32§oauth_provider: i32Implementations§
Source§impl RegistrationChallenge
impl RegistrationChallenge
Sourcepub fn user_verification(&self) -> UserVerification
pub fn user_verification(&self) -> UserVerification
Returns the enum value of user_verification, or the default if the field is set to an invalid enum value.
Sourcepub fn set_user_verification(&mut self, value: UserVerification)
pub fn set_user_verification(&mut self, value: UserVerification)
Sets user_verification to the provided enum value.
Sourcepub fn method(&self) -> CredentialMethod
pub fn method(&self) -> CredentialMethod
Returns the enum value of method, or the default if the field is set to an invalid enum value.
Sourcepub fn set_method(&mut self, value: CredentialMethod)
pub fn set_method(&mut self, value: CredentialMethod)
Sets method to the provided enum value.
Sourcepub fn oauth_provider(&self) -> OAuthProvider
pub fn oauth_provider(&self) -> OAuthProvider
Returns the enum value of oauth_provider, or the default if the field is set to an invalid enum value.
Sourcepub fn set_oauth_provider(&mut self, value: OAuthProvider)
pub fn set_oauth_provider(&mut self, value: OAuthProvider)
Sets oauth_provider to the provided enum value.
Trait Implementations§
Source§impl Clone for RegistrationChallenge
impl Clone for RegistrationChallenge
Source§fn clone(&self) -> RegistrationChallenge
fn clone(&self) -> RegistrationChallenge
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for RegistrationChallenge
impl Debug for RegistrationChallenge
Source§impl Default for RegistrationChallenge
impl Default for RegistrationChallenge
Source§fn default() -> RegistrationChallenge
fn default() -> RegistrationChallenge
impl Eq for RegistrationChallenge
Source§impl Hash for RegistrationChallenge
impl Hash for RegistrationChallenge
Source§impl Message for RegistrationChallenge
impl Message for RegistrationChallenge
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self. Read moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self.Source§impl PartialEq for RegistrationChallenge
impl PartialEq for RegistrationChallenge
impl StructuralPartialEq for RegistrationChallenge
Auto Trait Implementations§
impl Freeze for RegistrationChallenge
impl RefUnwindSafe for RegistrationChallenge
impl Send for RegistrationChallenge
impl Sync for RegistrationChallenge
impl Unpin for RegistrationChallenge
impl UnsafeUnpin for RegistrationChallenge
impl UnwindSafe for RegistrationChallenge
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.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