Struct gedcomx::SourceCitation [−][src]
Expand description
A container for the metadata necessary for an agent to identify a source(s).
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.lang: Option<Lang>
The locale identifier for the bibliographic metadata.
value: String
The bibliographic metadata rendered as a full citation.
This string is plain text, but MAY include an xhtml cite element. If the value includes a cite element, the text-level semantics defined for cite MUST apply—i.e., the element MUST represent the title of a work.
Implementations
Trait Implementations
Returns the “default value” for a type. Read more
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 !=
.
fn serialize_attributes(
&self,
source_attributes: Vec<OwnedAttribute>,
source_namespace: Namespace
) -> Result<(Vec<OwnedAttribute>, Namespace), String>
Auto Trait Implementations
impl RefUnwindSafe for SourceCitation
impl Send for SourceCitation
impl Sync for SourceCitation
impl Unpin for SourceCitation
impl UnwindSafe for SourceCitation
Blanket Implementations
Mutably borrows from an owned value. Read more