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.