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 Primarywith 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
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.
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

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. 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

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.