Struct gedcom::GedcomData [−][src]
The data structure representing all the data within a gedcom file
Fields
header: Header
Header containing file metadata
submitters: Vec<Submitter>
List of submitters of the facts
individuals: Vec<Individual>
Individuals within the family tree
families: Vec<Family>
The family units of the tree, representing relationships between individuals
repositories: Vec<Repository>
A data repository where sources
are held
sources: Vec<Source>
Sources of facts. ie. book, document, census, etc.
multimedia: Vec<Media>
A multimedia asset linked to a fact
Implementations
impl GedcomData
[src]
pub fn add_family(&mut self, family: Family)
[src]
Adds a Family
(a relationship between individuals) to the tree
pub fn add_individual(&mut self, individual: Individual)
[src]
Adds an Individual
to the tree
pub fn add_repository(&mut self, repo: Repository)
[src]
Adds a data Repository
to the tree
pub fn add_source(&mut self, source: Source)
[src]
Adds a Source
to the tree
pub fn add_submitter(&mut self, submitter: Submitter)
[src]
Adds a Submitter
to the tree
pub fn stats(&self)
[src]
Outputs a summary of data contained in the tree to stdout
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for GedcomData
[src]
impl Send for GedcomData
[src]
impl Sync for GedcomData
[src]
impl Unpin for GedcomData
[src]
impl UnwindSafe for GedcomData
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,