Struct gedcomx::DocumentBuilder
source · pub struct DocumentBuilder(_);
Implementations§
source§impl DocumentBuilder
impl DocumentBuilder
pub fn id<I: Into<Id>>(&mut self, id: I) -> &mut Self
pub fn lang<I: Into<Lang>>(&mut self, lang: I) -> &mut Self
sourcepub 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.
pub fn source_ref(&mut self, source_ref: SourceReference) -> &mut Self
sourcepub fn analysis(&mut self, document: &Document) -> Result<&mut Self>
pub fn analysis(&mut self, document: &Document) -> Result<&mut Self>
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
pub fn confidence(&mut self, confidence: ConfidenceLevel) -> &mut Self
pub fn attribution(&mut self, attribution: Attribution) -> &mut Self
pub fn document_type(&mut self, document_type: DocumentType) -> &mut Self
pub fn extracted(&mut self, extracted: bool) -> &mut Self
pub fn text_type(&mut self, text_type: TextType) -> &mut Self
pub fn build(&self) -> Document
Auto Trait Implementations§
impl RefUnwindSafe for DocumentBuilder
impl Send for DocumentBuilder
impl Sync for DocumentBuilder
impl Unpin for DocumentBuilder
impl UnwindSafe for DocumentBuilder
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more