pub struct BeginRegistrationRequest {
pub caller_public_key: Vec<u8>,
pub handle: String,
pub display_name: String,
pub method: i32,
pub oauth_provider: i32,
pub signup_admission: Option<SignupAdmission>,
}Fields§
§caller_public_key: Vec<u8>One Ed25519 device key for Biscuit authority and request possession. Completion proves this exact key; an existing bearer selects the account but never substitutes for the enrolling device’s signature.
handle: StringRequired for signup/claim; optional for adding a device. An existing account is selected by the authenticated UUID, never by a mutable handle.
display_name: String§method: i32§oauth_provider: i32§signup_admission: Option<SignupAdmission>Signup uses one previously admitted reservation. With no admission, an independently rooted bearer adds a device to its existing account, or a claimable agent bearer claims its account under a new handle. Anonymous signup preserves the anonymous account UUID. The challenge records which ceremony was admitted; completion cannot switch ceremonies or accounts.
Implementations§
Source§impl BeginRegistrationRequest
impl BeginRegistrationRequest
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 BeginRegistrationRequest
impl Clone for BeginRegistrationRequest
Source§fn clone(&self) -> BeginRegistrationRequest
fn clone(&self) -> BeginRegistrationRequest
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 BeginRegistrationRequest
impl Debug for BeginRegistrationRequest
Source§impl Default for BeginRegistrationRequest
impl Default for BeginRegistrationRequest
Source§fn default() -> BeginRegistrationRequest
fn default() -> BeginRegistrationRequest
impl Eq for BeginRegistrationRequest
Source§impl Hash for BeginRegistrationRequest
impl Hash for BeginRegistrationRequest
Source§impl Message for BeginRegistrationRequest
impl Message for BeginRegistrationRequest
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 BeginRegistrationRequest
impl PartialEq for BeginRegistrationRequest
impl StructuralPartialEq for BeginRegistrationRequest
Auto Trait Implementations§
impl Freeze for BeginRegistrationRequest
impl RefUnwindSafe for BeginRegistrationRequest
impl Send for BeginRegistrationRequest
impl Sync for BeginRegistrationRequest
impl Unpin for BeginRegistrationRequest
impl UnsafeUnpin for BeginRegistrationRequest
impl UnwindSafe for BeginRegistrationRequest
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