Struct gedcomx::Identifier [−][src]
#[non_exhaustive]pub struct Identifier { pub value: Uri, pub identifier_type: Option<IdentifierType>, // some fields omitted }
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
Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
fn serialize_attributes(
&self,
attributes: Vec<OwnedAttribute>,
namespace: Namespace
) -> Result<(Vec<OwnedAttribute>, Namespace), String>
Auto Trait Implementations
impl RefUnwindSafe for Identifier
impl Send for Identifier
impl Sync for Identifier
impl Unpin for Identifier
impl UnwindSafe for Identifier
Blanket Implementations
Mutably borrows from an owned value. Read more