Struct gedcom::GedcomData[][src]

pub struct GedcomData {
    pub header: Header,
    pub submitters: Vec<Submitter>,
    pub individuals: Vec<Individual>,
    pub families: Vec<Family>,
    pub repositories: Vec<Repository>,
    pub sources: Vec<Source>,
    pub multimedia: Vec<Media>,
}

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

impl Debug for GedcomData[src]

impl Default for GedcomData[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.