pub struct BeginAuthenticationRequest {
pub account_hint: String,
pub caller_public_key: Vec<u8>,
pub enroll_device: bool,
pub device_label: String,
pub method: i32,
pub oauth_provider: i32,
}Fields§
§account_hint: StringOptional for PASSKEY. Empty selects discoverable authentication: begin returns an account-free mint grant with no allowed credential IDs or passkey authorities. Its TTL uses a deployment-configured minimum that every accepted authority satisfies. Nonempty preserves account-selected authentication and uses the minimum TTL ceiling among credentials that may sign. Completion still verifies the selected authority’s exact ceiling.
caller_public_key: Vec<u8>Device key whose possession CompleteAuthentication must prove. The challenge records this exact key and the enrollment choice below. PASSWORD requires a fresh 32-byte Ed25519 key and enroll_device = true.
enroll_device: boolExplicitly attach a fresh browser key after an existing account passkey verifies this challenge. False requires an already enrolled active key. Enrollment never replaces the human’s root, revives a revoked key, or reassigns a key owned by another account. The passkey assertion, request proof, device admission and session receipt commit as one ceremony.
device_label: String§method: i32§oauth_provider: i32Required exactly when method is OAUTH. Never a caller-supplied issuer URL.
Implementations§
Source§impl BeginAuthenticationRequest
impl BeginAuthenticationRequest
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 BeginAuthenticationRequest
impl Clone for BeginAuthenticationRequest
Source§fn clone(&self) -> BeginAuthenticationRequest
fn clone(&self) -> BeginAuthenticationRequest
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 BeginAuthenticationRequest
impl Debug for BeginAuthenticationRequest
Source§impl Default for BeginAuthenticationRequest
impl Default for BeginAuthenticationRequest
Source§fn default() -> BeginAuthenticationRequest
fn default() -> BeginAuthenticationRequest
impl Eq for BeginAuthenticationRequest
Source§impl Hash for BeginAuthenticationRequest
impl Hash for BeginAuthenticationRequest
Source§impl Message for BeginAuthenticationRequest
impl Message for BeginAuthenticationRequest
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.impl StructuralPartialEq for BeginAuthenticationRequest
Auto Trait Implementations§
impl Freeze for BeginAuthenticationRequest
impl RefUnwindSafe for BeginAuthenticationRequest
impl Send for BeginAuthenticationRequest
impl Sync for BeginAuthenticationRequest
impl Unpin for BeginAuthenticationRequest
impl UnsafeUnpin for BeginAuthenticationRequest
impl UnwindSafe for BeginAuthenticationRequest
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