pub struct BeginWebAuthnRegistrationRequest {
pub username: String,
pub display_name: String,
pub account_id: String,
pub agent_node_id: String,
pub pre_consent_signature: Vec<u8>,
pub nonce: Vec<u8>,
}Fields§
§username: String§display_name: String§account_id: StringAdoption path for claiming an agent-created account (api#123 / weft#1357).
When any adoption field is set, all four travel together: weft mints the
WebAuthn challenge only after verifying pre_consent_signature over
(account_id, username, agent_node_id, nonce). This is the ratified
pre-consent: it commits the handle and agent authority, and does not bind
a credentialId (that id does not exist until WebAuthn create() returns).
agent_node_id: StringIroh node id of the authorizing agent. Empty on the ordinary verified-signup-email / unattenuated-identity begin paths.
pre_consent_signature: Vec<u8>Agent-derived-credential signature over
(account_id, username, agent_node_id, nonce).
nonce: Vec<u8>Challenge nonce the pre-consent signature binds. Empty on non-adoption begins.
Trait Implementations§
Source§impl Clone for BeginWebAuthnRegistrationRequest
impl Clone for BeginWebAuthnRegistrationRequest
Source§fn clone(&self) -> BeginWebAuthnRegistrationRequest
fn clone(&self) -> BeginWebAuthnRegistrationRequest
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 moreimpl Eq for BeginWebAuthnRegistrationRequest
Source§impl Message for BeginWebAuthnRegistrationRequest
impl Message for BeginWebAuthnRegistrationRequest
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter.
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,
Encodes the message to a buffer. Read more
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Encodes the message to a newly allocated buffer.
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,
Encodes the message with a length-delimiter to a buffer. Read more
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,
Encodes the message with a length-delimiter to a newly allocated buffer.
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Decodes an instance of the message from a buffer. Read more
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,
Decodes a length-delimited instance of the message from the buffer.
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,
Decodes an instance of the message from a buffer, and merges it into
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,
Decodes a length-delimited instance of the message from buffer, and
merges it into
self.impl StructuralPartialEq for BeginWebAuthnRegistrationRequest
Auto Trait Implementations§
impl Freeze for BeginWebAuthnRegistrationRequest
impl RefUnwindSafe for BeginWebAuthnRegistrationRequest
impl Send for BeginWebAuthnRegistrationRequest
impl Sync for BeginWebAuthnRegistrationRequest
impl Unpin for BeginWebAuthnRegistrationRequest
impl UnsafeUnpin for BeginWebAuthnRegistrationRequest
impl UnwindSafe for BeginWebAuthnRegistrationRequest
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
Mutably borrows from an owned value. Read more