Struct gedcomx::RelationshipBuilder [−][src]
pub struct RelationshipBuilder(_);
Implementations
impl RelationshipBuilder
[src]
impl RelationshipBuilder
[src]pub fn id<I: Into<Id>>(&mut self, id: I) -> &mut Self
[src]
pub fn lang<I: Into<Lang>>(&mut self, lang: I) -> &mut Self
[src]
pub fn source<I: TryInto<SourceReference, Error = GedcomxError>>(
&mut self,
source: I
) -> Result<&mut Self>
[src]
pub fn source<I: TryInto<SourceReference, Error = GedcomxError>>(
&mut self,
source: I
) -> Result<&mut Self>
[src]Errors
Will return GedcomxError::NoId
if a
conversion into SourceReference
fails.
This happens if source
has no id
set.
pub fn source_ref(&mut self, source_ref: SourceReference) -> &mut Self
[src]
pub fn analysis(&mut self, document: &Document) -> Result<&mut Self>
[src]
pub fn analysis(&mut self, document: &Document) -> Result<&mut Self>
[src]Errors
Will return GedcomxError
if a conversion into
Document
fails. This happens if document
has no id
set or has the wrong document_type
.
pub fn note(&mut self, note: Note) -> &mut Self
[src]
pub fn confidence(&mut self, confidence: ConfidenceLevel) -> &mut Self
[src]
pub fn attribution(&mut self, attribution: Attribution) -> &mut Self
[src]
pub fn extracted(&mut self, extracted: bool) -> &mut Self
[src]
pub fn evidence(&mut self, e: &Relationship) -> Result<&mut Self>
[src]
pub fn evidence(&mut self, e: &Relationship) -> Result<&mut Self>
[src]Errors
Will return GedcomxError::NoId
if a
conversion into EvidenceReference
fails.
This happens if the passed argument has no id
set.
pub fn media(&mut self, media: &SourceDescription) -> Result<&mut Self>
[src]
pub fn media(&mut self, media: &SourceDescription) -> Result<&mut Self>
[src]Errors
Will return GedcomxError::NoId
if a
conversion into SourceReference
fails.
This happens if media
has no id
set.
pub fn identifier(&mut self, identifier: Identifier) -> &mut Self
[src]
pub fn relationship_type(
&mut self,
relationship_type: RelationshipType
) -> &mut Self
[src]
&mut self,
relationship_type: RelationshipType
) -> &mut Self