pub struct BiometricVerification {Show 13 fields
pub verification_id: String,
pub user_id: UserId,
pub tenant_id: TenantId,
pub aaguid: String,
pub modality: Option<BiometricModality>,
pub user_verification: bool,
pub liveness_detection: bool,
pub quality_score: Option<u8>,
pub verified_at: DateTime<Utc>,
pub expires_at: DateTime<Utc>,
pub ip_address: Option<String>,
pub risk_score: u8,
pub step_up_completed: bool,
}Expand description
Biometric verification
Fields§
§verification_id: StringVerification ID
user_id: UserIdUser ID
tenant_id: TenantIdTenant ID
aaguid: StringAuthenticator AAGUID
modality: Option<BiometricModality>Biometric modality
user_verification: boolUser verification performed
liveness_detection: boolLiveness detection performed
quality_score: Option<u8>Quality score (0-100)
verified_at: DateTime<Utc>Verified at
expires_at: DateTime<Utc>Expires at
ip_address: Option<String>IP address
risk_score: u8Risk score (0-100)
step_up_completed: boolStep-up completed
Implementations§
Source§impl BiometricVerification
impl BiometricVerification
Sourcepub fn new(
user_id: UserId,
tenant_id: TenantId,
aaguid: String,
modality: Option<BiometricModality>,
user_verification: bool,
liveness_detection: bool,
validity_seconds: i64,
) -> Self
pub fn new( user_id: UserId, tenant_id: TenantId, aaguid: String, modality: Option<BiometricModality>, user_verification: bool, liveness_detection: bool, validity_seconds: i64, ) -> Self
Create new verification
Sourcepub fn is_expired(&self) -> bool
pub fn is_expired(&self) -> bool
Check if verification is expired
Sourcepub fn with_quality(self, score: u8) -> Self
pub fn with_quality(self, score: u8) -> Self
Set quality score
Sourcepub fn with_risk_score(self, score: u8) -> Self
pub fn with_risk_score(self, score: u8) -> Self
Set risk score
Sourcepub fn mark_step_up_completed(self) -> Self
pub fn mark_step_up_completed(self) -> Self
Mark step-up completed
Trait Implementations§
Source§impl Clone for BiometricVerification
impl Clone for BiometricVerification
Source§fn clone(&self) -> BiometricVerification
fn clone(&self) -> BiometricVerification
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 Debug for BiometricVerification
impl Debug for BiometricVerification
Source§impl<'de> Deserialize<'de> for BiometricVerification
impl<'de> Deserialize<'de> for BiometricVerification
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
Auto Trait Implementations§
impl Freeze for BiometricVerification
impl RefUnwindSafe for BiometricVerification
impl Send for BiometricVerification
impl Sync for BiometricVerification
impl Unpin for BiometricVerification
impl UnsafeUnpin for BiometricVerification
impl UnwindSafe for BiometricVerification
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