#[non_exhaustive]pub struct Holder {
pub name: Option<String>,
pub first_surname: Option<String>,
pub second_surname: Option<String>,
pub number: Option<String>,
}Expand description
Holder data in the subject of a DNIe certificate; a field the subject lacks is None.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.name: Option<String>Given name: what follows the first comma of the common name.
first_surname: Option<String>First surname: the subject’s surname attribute.
second_surname: Option<String>Second surname: the common name without its commas, the name and the first surname.
number: Option<String>Document number: the subject’s serial number attribute.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Holder
impl RefUnwindSafe for Holder
impl Send for Holder
impl Sync for Holder
impl Unpin for Holder
impl UnsafeUnpin for Holder
impl UnwindSafe for Holder
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