pub struct WebauthnAssertion {
pub authenticator_data: Vec<u8>,
pub client_data_json: String,
}Expand description
Actual payload signed according to Webauthn standard
Fields§
§authenticator_data: Vec<u8>Base64Url-encoded authenticatorData
client_data_json: StringSerialized clientDataJSON
Trait Implementations§
Source§impl<'arbitrary> Arbitrary<'arbitrary> for WebauthnAssertion
impl<'arbitrary> Arbitrary<'arbitrary> for WebauthnAssertion
Source§fn arbitrary(u: &mut Unstructured<'arbitrary>) -> Result<Self>
fn arbitrary(u: &mut Unstructured<'arbitrary>) -> Result<Self>
Generate an arbitrary value of
Self from the given unstructured data. Read moreSource§fn arbitrary_take_rest(u: Unstructured<'arbitrary>) -> Result<Self>
fn arbitrary_take_rest(u: Unstructured<'arbitrary>) -> Result<Self>
Generate an arbitrary value of
Self from the entirety of the given
unstructured data. Read moreSource§impl BorshDeserialize for WebauthnAssertion
impl BorshDeserialize for WebauthnAssertion
fn deserialize_reader<__R: Read>(reader: &mut __R) -> Result<Self, Error>
§fn deserialize(buf: &mut &[u8]) -> Result<Self, Error>
fn deserialize(buf: &mut &[u8]) -> Result<Self, Error>
Deserializes this instance from a given slice of bytes.
Updates the buffer to point at the remaining bytes.
§fn try_from_slice(v: &[u8]) -> Result<Self, Error>
fn try_from_slice(v: &[u8]) -> Result<Self, Error>
Deserialize this instance from a slice of bytes.
fn try_from_reader<R>(reader: &mut R) -> Result<Self, Error>where
R: Read,
Source§impl BorshSchema for WebauthnAssertion
impl BorshSchema for WebauthnAssertion
Source§fn declaration() -> Declaration
fn declaration() -> Declaration
Get the name of the type without brackets.
Source§fn add_definitions_recursively(
definitions: &mut BTreeMap<Declaration, Definition>,
)
fn add_definitions_recursively( definitions: &mut BTreeMap<Declaration, Definition>, )
Recursively, using DFS, add type definitions required for this type.
Type definition partially explains how to serialize/deserialize a type.
Source§impl BorshSerialize for WebauthnAssertion
impl BorshSerialize for WebauthnAssertion
Source§impl Clone for WebauthnAssertion
impl Clone for WebauthnAssertion
Source§fn clone(&self) -> WebauthnAssertion
fn clone(&self) -> WebauthnAssertion
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 moreSource§impl Debug for WebauthnAssertion
impl Debug for WebauthnAssertion
Source§impl<'de> Deserialize<'de> for WebauthnAssertion
impl<'de> Deserialize<'de> for WebauthnAssertion
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl JsonSchema for WebauthnAssertion
impl JsonSchema for WebauthnAssertion
Source§fn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
§fn is_referenceable() -> bool
fn is_referenceable() -> bool
Whether JSON Schemas generated for this type should be re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for WebauthnAssertion
impl PartialEq for WebauthnAssertion
Source§fn eq(&self, other: &WebauthnAssertion) -> bool
fn eq(&self, other: &WebauthnAssertion) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for WebauthnAssertion
impl Serialize for WebauthnAssertion
impl Eq for WebauthnAssertion
impl StructuralPartialEq for WebauthnAssertion
Auto Trait Implementations§
impl Freeze for WebauthnAssertion
impl RefUnwindSafe for WebauthnAssertion
impl Send for WebauthnAssertion
impl Sync for WebauthnAssertion
impl Unpin for WebauthnAssertion
impl UnsafeUnpin for WebauthnAssertion
impl UnwindSafe for WebauthnAssertion
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.