pub struct AncestryRecord {
pub token: String,
pub label: String,
pub imported_from: String,
}Expand description
Genetic-ancestry context. Exists only when the person imported a record they chose.
Fields§
§token: String§label: String§imported_from: StringProvenance of the imported record (lab, file, pack id). Required.
Implementations§
Source§impl AncestryRecord
impl AncestryRecord
Sourcepub fn from_import(
label: &str,
imported_from: &str,
) -> Result<Self, AncestryInvalid>
pub fn from_import( label: &str, imported_from: &str, ) -> Result<Self, AncestryInvalid>
Constructs from import.
Trait Implementations§
Source§impl Clone for AncestryRecord
impl Clone for AncestryRecord
Source§impl Debug for AncestryRecord
impl Debug for AncestryRecord
Source§impl<'de> Deserialize<'de> for AncestryRecord
impl<'de> Deserialize<'de> for AncestryRecord
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for AncestryRecord
Source§impl PartialEq for AncestryRecord
impl PartialEq for AncestryRecord
Source§impl Serialize for AncestryRecord
impl Serialize for AncestryRecord
impl StructuralPartialEq for AncestryRecord
Auto Trait Implementations§
impl Freeze for AncestryRecord
impl RefUnwindSafe for AncestryRecord
impl Send for AncestryRecord
impl Sync for AncestryRecord
impl Unpin for AncestryRecord
impl UnsafeUnpin for AncestryRecord
impl UnwindSafe for AncestryRecord
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