pub struct ClientPinRequest {
pub pin_uv_protocol: Option<u32>,
pub sub_command: ClientPinSubCommand,
pub key_agreement: Option<COSEKey>,
pub pin_uv_auth_param: Option<Vec<u8>>,
pub new_pin_enc: Option<Vec<u8>>,
pub pin_hash_enc: Option<Vec<u8>>,
pub permissions: Permissions,
pub rp_id: Option<String>,
}Available on crate features
ctap2 only.Expand description
authenticatorclientPin request type.
See:
- ClientPinSubCommand for command types
crate::ctap2::pin_uvconstructs this command
Fields§
§pin_uv_protocol: Option<u32>PIN / UV protocol version chosen by the platform
sub_command: ClientPinSubCommandAction being requested
key_agreement: Option<COSEKey>The platform-agreement key
pin_uv_auth_param: Option<Vec<u8>>Output of calling “Authenticate” on some context specific to sub_command
new_pin_enc: Option<Vec<u8>>An encrypted PIN
pin_hash_enc: Option<Vec<u8>>An encrypted proof-of-knowledge of a PIN
permissions: PermissionsPermissions bitfield for GetPinUvAuthTokenUsingUvWithPermissions and GetPinUvAuthTokenUsingPinWithPermissions.
Field is omitted if 0.
rp_id: Option<String>The RP ID to assign as the permissions RP ID
Trait Implementations§
Source§impl CBORCommand for ClientPinRequest
impl CBORCommand for ClientPinRequest
Source§type Response = ClientPinResponse
type Response = ClientPinResponse
The response type associated with this command.
Source§const HAS_PAYLOAD: bool = true
const HAS_PAYLOAD: bool = true
If true (default), then the command has a payload, which will be
serialized into CBOR format. Read more
Source§impl Clone for ClientPinRequest
impl Clone for ClientPinRequest
Source§fn clone(&self) -> ClientPinRequest
fn clone(&self) -> ClientPinRequest
Returns a duplicate of the value. Read more
1.0.0 · 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 ClientPinRequest
impl Debug for ClientPinRequest
Source§impl Default for ClientPinRequest
impl Default for ClientPinRequest
Source§fn default() -> ClientPinRequest
fn default() -> ClientPinRequest
Returns the “default value” for a type. Read more
Source§impl From<ClientPinRequest> for BTreeMap<u32, Value>
impl From<ClientPinRequest> for BTreeMap<u32, Value>
Source§fn from(value: ClientPinRequest) -> Self
fn from(value: ClientPinRequest) -> Self
Converts to this type from the input type.
Source§impl PartialEq for ClientPinRequest
impl PartialEq for ClientPinRequest
Source§impl Serialize for ClientPinRequest
impl Serialize for ClientPinRequest
impl Eq for ClientPinRequest
impl StructuralPartialEq for ClientPinRequest
Auto Trait Implementations§
impl Freeze for ClientPinRequest
impl RefUnwindSafe for ClientPinRequest
impl Send for ClientPinRequest
impl Sync for ClientPinRequest
impl Unpin for ClientPinRequest
impl UnwindSafe for ClientPinRequest
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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