pub struct BioEnrollmentResponse {
pub modality: Option<Modality>,
pub fingerprint_kind: Option<FingerprintKind>,
pub max_capture_samples_required_for_enroll: Option<u32>,
pub template_id: Option<Vec<u8>>,
pub last_enroll_sample_status: Option<EnrollSampleStatus>,
pub remaining_samples: Option<u32>,
pub template_infos: Vec<TemplateInfo>,
pub max_template_friendly_name: Option<usize>,
}ctap2-management and ctap2 only.Expand description
authenticatorBioEnrollment response type.
References:
Fields§
§modality: Option<Modality>Biometric authentication modality supported by the authenticator.
Returned in response to a BioEnrollmentRequestTrait::GET_MODALITY request.
fingerprint_kind: Option<FingerprintKind>The kind of fingerprint sensor used on the device.
Returned in response to a BioEnrollmentRequestTrait::GET_FINGERPRINT_SENSOR_INFO request.
max_capture_samples_required_for_enroll: Option<u32>The maximum number of good fingerprint samples required for enrollment.
Returned in response to a BioEnrollmentRequestTrait::GET_FINGERPRINT_SENSOR_INFO request.
template_id: Option<Vec<u8>>The identifier for the fingerprint being enrolled.
Returned in response to a BioSubCommand::FingerprintEnrollBegin request.
last_enroll_sample_status: Option<EnrollSampleStatus>The state of the last collected fingerprint sample.
Returned in response to a BioSubCommand::FingerprintEnrollBegin or BioSubCommand::FingerprintEnrollCaptureNextSample request.
remaining_samples: Option<u32>The number of good fingerprint samples required to complete enrollment.
Returned in response to a BioSubCommand::FingerprintEnrollBegin or BioSubCommand::FingerprintEnrollCaptureNextSample request.
template_infos: Vec<TemplateInfo>A list of all enrolled fingerprints on the device.
Returned in response to a BioSubCommand::FingerprintEnumerateEnrollments request.
max_template_friendly_name: Option<usize>The maximum length for a TemplateInfo::friendly_name used on the device.
Returned in response to a BioEnrollmentRequestTrait::GET_FINGERPRINT_SENSOR_INFO request.
Prefer using the get_max_template_friendly_name() method instead of this field, which also provides a default value if this is missing.
Implementations§
source§impl BioEnrollmentResponse
impl BioEnrollmentResponse
sourcepub fn get_max_template_friendly_name(&self) -> usize
pub fn get_max_template_friendly_name(&self) -> usize
Gets the maximum template friendly name size in bytes, or the default if none is provided.
This value is only valid as a response to BioEnrollmentRequestTrait::GET_FINGERPRINT_SENSOR_INFO.
Trait Implementations§
source§impl CBORResponse for BioEnrollmentResponse
impl CBORResponse for BioEnrollmentResponse
source§impl Debug for BioEnrollmentResponse
impl Debug for BioEnrollmentResponse
source§impl Default for BioEnrollmentResponse
impl Default for BioEnrollmentResponse
source§fn default() -> BioEnrollmentResponse
fn default() -> BioEnrollmentResponse
source§impl<'de> Deserialize<'de> for BioEnrollmentResponse
impl<'de> Deserialize<'de> for BioEnrollmentResponse
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>,
source§impl PartialEq for BioEnrollmentResponse
impl PartialEq for BioEnrollmentResponse
source§fn eq(&self, other: &BioEnrollmentResponse) -> bool
fn eq(&self, other: &BioEnrollmentResponse) -> bool
self and other values to be equal, and is used
by ==.