pub struct Biometric {
pub data: Vec<u8>,
pub format: Option<BiometricFormat>,
pub sub_format: Option<BiometricSubFormat>,
pub issuer: Option<String>,
}Expand description
A single biometric data entry
Fields§
§data: Vec<u8>Binary biometric data (key 0)
format: Option<BiometricFormat>Data format: Image, Template, Sound, BioHash (key 1)
sub_format: Option<BiometricSubFormat>Data sub-format depending on format type (key 2)
issuer: Option<String>Biometric data issuer (key 3)
Implementations§
Source§impl Biometric
impl Biometric
pub fn new(data: Vec<u8>) -> Self
pub fn with_format(self, format: BiometricFormat) -> Self
pub fn with_sub_format(self, sub_format: BiometricSubFormat) -> Self
pub fn with_issuer(self, issuer: impl Into<String>) -> Self
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Biometric
impl<'de> Deserialize<'de> for Biometric
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
impl Eq for Biometric
impl StructuralPartialEq for Biometric
Auto Trait Implementations§
impl Freeze for Biometric
impl RefUnwindSafe for Biometric
impl Send for Biometric
impl Sync for Biometric
impl Unpin for Biometric
impl UnwindSafe for Biometric
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