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>,
}
Expand description
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§
Source§impl GedcomData
impl GedcomData
Sourcepub fn add_family(&mut self, family: Family)
pub fn add_family(&mut self, family: Family)
Adds a Family
(a relationship between individuals) to the tree
Sourcepub fn add_individual(&mut self, individual: Individual)
pub fn add_individual(&mut self, individual: Individual)
Adds an Individual
to the tree
Sourcepub fn add_repository(&mut self, repo: Repository)
pub fn add_repository(&mut self, repo: Repository)
Adds a data Repository
to the tree
Sourcepub fn add_source(&mut self, source: Source)
pub fn add_source(&mut self, source: Source)
Adds a Source
to the tree
Sourcepub fn add_submitter(&mut self, submitter: Submitter)
pub fn add_submitter(&mut self, submitter: Submitter)
Adds a Submitter
to the tree
Trait Implementations§
Source§impl Debug for GedcomData
impl Debug for GedcomData
Source§impl Default for GedcomData
impl Default for GedcomData
Source§fn default() -> GedcomData
fn default() -> GedcomData
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for GedcomData
impl RefUnwindSafe for GedcomData
impl Send for GedcomData
impl Sync for GedcomData
impl Unpin for GedcomData
impl UnwindSafe for GedcomData
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