Struct offchain::types::NationalIdObject [−][src]
pub struct NationalIdObject {
pub id_value: String,
pub country: Option<String>,
pub id_type: Option<String>,
}Expand description
Represents a national ID.
Fields
id_value: StringIndicates the national ID value - for example, a social security number
country: Option<String>Two-letter country code (https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)
id_type: Option<String>Indicates the type of the ID
Trait Implementations
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
This method tests for self and other values to be equal, and is used
by ==. Read more
This method tests for !=.
Auto Trait Implementations
impl RefUnwindSafe for NationalIdObject
impl Send for NationalIdObject
impl Sync for NationalIdObject
impl Unpin for NationalIdObject
impl UnwindSafe for NationalIdObject
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span, returning an
Instrumented wrapper. Read more
type Output = T
type Output = T
Should always be Self
Generates a hash used only for tests.