#[non_exhaustive]pub struct Identifier {
pub value: Uri,
pub identifier_type: Option<IdentifierType>,
/* private fields */
}
Expand description
An identifier of a genealogical resource.
§Examples
An instance of Person with an identifier of type
Primary
and value “12345” is merged into
an instance of Person
with an identifier of type
Primary
and value “67890”. Person
“67890” assumes an identifier of type
Deprecated
and value “12345”. The
identifier type Deprecated
is used
because the merged person “12345” now has identifier of type
Primary
with value “67890”.
A description of Salt Lake City, Utah, United States is provided using an
instance of PlaceDescription
. Salt Lake City is
maintained in the Geographic Names Information System (GNIS), an external
place authority. The description of Salt Lake City might identify the associated GNIS resource using an identifier of type Authority
with value “http://geonames.usgs.gov/pls/gnispublic/f?p=gnispq:3:::NO::P3_FID:2411771”.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.value: Uri
The value of the identifier.
identifier_type: Option<IdentifierType>
Identifies how the identifier is to be used and the nature of the resource to which the identifier resolves.
If no type is provided, the usage and nature of the identifier is application-specific.
Implementations§
Source§impl Identifier
impl Identifier
Trait Implementations§
Source§impl Arbitrary for Identifier
impl Arbitrary for Identifier
Source§impl Clone for Identifier
impl Clone for Identifier
Source§fn clone(&self) -> Identifier
fn clone(&self) -> Identifier
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more