Struct gedcomx::RelationshipBuilder [−][src]
pub struct RelationshipBuilder(_);
Implementations
pub fn source<I: TryInto<SourceReference, Error = GedcomxError>>(
&mut self,
source: I
) -> Result<&mut Self>
pub fn source<I: TryInto<SourceReference, Error = GedcomxError>>(
&mut self,
source: I
) -> Result<&mut Self>
Errors
Will return GedcomxError::NoId
if a
conversion into SourceReference
fails.
This happens if source
has no id
set.
Errors
Will return GedcomxError
if a conversion into
Document
fails. This happens if document
has no id
set or has the wrong document_type
.
Errors
Will return GedcomxError::NoId
if a
conversion into EvidenceReference
fails.
This happens if the passed argument has no id
set.
Errors
Will return GedcomxError::NoId
if a
conversion into SourceReference
fails.
This happens if media
has no id
set.
Errors
Will return GedcomxError::NoId
if a
conversion into ResourceReference
fails.
This happens if either person1
or person2
has no id
set.
Errors
Will return GedcomxError::NoId
if a
conversion into ResourceReference
fails.
This happens if either person1
or person2
has no id
set.
Auto Trait Implementations
impl RefUnwindSafe for RelationshipBuilder
impl Send for RelationshipBuilder
impl Sync for RelationshipBuilder
impl Unpin for RelationshipBuilder
impl UnwindSafe for RelationshipBuilder