pub struct Options {
pub plat: bool,
pub rk: bool,
pub client_pin: Option<bool>,
pub up: bool,
pub uv: Option<bool>,
}Expand description
All options are in the form of key-value pairs with string IDs and boolean values. When an option is not present, the default is applied.
Fields§
§plat: boolPlatform Device: Indicates that the device is attached to the client and therefore can’t be removed and used on another client.
rk: boolResident Key: Indicates that the device is capable of storing keys on the device itself and therefore can satisfy the authenticatorGetAssertion request with allowList parameter not specified or empty.
client_pin: Option<bool>Client Pin:
If Some(true), it indicates that the device is capable of accepting a PIN from
the client and PIN has been set.
If Some(false), it indicates that the device is capable of accepting a PIN from
the client and PIN has not been set yet.
If None, it indicates that the device is not capable of accepting a PIN from the client.
Client PIN is one of the ways to do user verification.
up: boolUser Presence: Indicates that the device is capable of testing user presence.
uv: Option<bool>User Verification: Indicates that the device is capable of verifying the user within itself. For example, devices with UI, biometrics fall into this category.
If Some(true), it indicates that the device is capable of user verification
within itself and has been configured.
If Some(false), it indicates that the device is capable of user verification
within itself and has not been yet configured. For example, a biometric device that has not
yet been configured will return this parameter set to false.
If None, it indicates that the device is not capable of user verification within itself.
A device that can only do Client PIN will not return the “uv” parameter.
If a device is capable of verifying the user within itself as well as able to do Client PIN, it will return both “uv” and the Client PIN option.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Options
impl<'de> Deserialize<'de> for Options
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>,
impl Eq for Options
impl StructuralPartialEq for Options
Auto Trait Implementations§
impl Freeze for Options
impl RefUnwindSafe for Options
impl Send for Options
impl Sync for Options
impl Unpin for Options
impl UnwindSafe for Options
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
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.