pub struct AuthenticatorAssertionResponse {
pub client_data_json: String,
pub authenticator_data: String,
pub signature: String,
pub user_handle: Option<String>,
}Fields§
§client_data_json: StringENCODING: base64url
authenticator_data: StringENCODING: base64url
signature: StringENCODING: base64url
user_handle: Option<String>NOTE(keyan): The (TypeScript) spec says this field is non-optional but nullable, i.e.
userHandle: string | null
What we have here is optional and nullable:
userHandle?: string | null
We need it to be optional because the field needs to be nil-able in go. However, a future version of TypeScript (w/ stricter options) might not like the type.
Trait Implementations§
Source§impl Clone for AuthenticatorAssertionResponse
impl Clone for AuthenticatorAssertionResponse
Source§fn clone(&self) -> AuthenticatorAssertionResponse
fn clone(&self) -> AuthenticatorAssertionResponse
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<'de> Deserialize<'de> for AuthenticatorAssertionResponse
impl<'de> Deserialize<'de> for AuthenticatorAssertionResponse
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
impl StructuralPartialEq for AuthenticatorAssertionResponse
Auto Trait Implementations§
impl Freeze for AuthenticatorAssertionResponse
impl RefUnwindSafe for AuthenticatorAssertionResponse
impl Send for AuthenticatorAssertionResponse
impl Sync for AuthenticatorAssertionResponse
impl Unpin for AuthenticatorAssertionResponse
impl UnsafeUnpin for AuthenticatorAssertionResponse
impl UnwindSafe for AuthenticatorAssertionResponse
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