Skip to main content

FhrMetadata

Struct FhrMetadata 

Source
pub struct FhrMetadata {
Show 23 fields pub schema: Option<String>, pub schema_version: Option<Number>, pub genome: Option<String>, pub taxon: Option<FhrTaxon>, pub version: Option<String>, pub metadata_author: Option<Vec<FhrAuthor>>, pub assembly_author: Option<Vec<FhrAuthor>>, pub date_created: Option<String>, pub voucher_specimen: Option<String>, pub masking: Option<String>, pub checksum: Option<String>, pub genome_synonym: Option<Vec<String>>, pub accession_id: Option<FhrIdentifier>, pub instrument: Option<Vec<String>>, pub scholarly_article: Option<String>, pub documentation: Option<String>, pub identifier: Option<Vec<String>>, pub license: Option<String>, pub related_link: Option<Vec<String>>, pub funding: Option<String>, pub vital_stats: Option<FhrVitalStats>, pub seqcol_digest: Option<String>, pub extra: HashMap<String, Value>,
}
Expand description

FAIR Headers Reference genome (FHR) metadata for a sequence collection.

All fields are optional to allow partial metadata. RefgetStore does not enforce FHR schema compliance – that’s the user’s responsibility.

Fields§

§schema: Option<String>

URL to the FHR JSON schema

§schema_version: Option<Number>

FHR schema version (numeric per spec, e.g. 1 or 1.0)

§genome: Option<String>

Genome name (e.g., “Homo sapiens”)

§taxon: Option<FhrTaxon>

Taxonomy information

§version: Option<String>

Genome version (e.g., “GRCh38.p14”)

§metadata_author: Option<Vec<FhrAuthor>>

Who created the metadata (ORCID URIs)

§assembly_author: Option<Vec<FhrAuthor>>

Who assembled the genome

§date_created: Option<String>

Assembly creation date (ISO 8601)

§voucher_specimen: Option<String>

Description of the physical sample

§masking: Option<String>

Masking type

§checksum: Option<String>

File-level checksum (SHA2-512/256 per FHR spec)

§genome_synonym: Option<Vec<String>>

Alternative common names for this genome

§accession_id: Option<FhrIdentifier>

Database accession identifier (single object per spec)

§instrument: Option<Vec<String>>

Sequencing instruments used

§scholarly_article: Option<String>

DOI or scholarly article reference (single string per spec)

§documentation: Option<String>

Documentation about the genome

§identifier: Option<Vec<String>>

Identifiers of the genome (namespace:value format)

§license: Option<String>

License information

§related_link: Option<Vec<String>>

Related URLs

§funding: Option<String>

Funding information (single string per spec)

§vital_stats: Option<FhrVitalStats>

General statistics about the genome assembly

§seqcol_digest: Option<String>

Seqcol digest (added by RefgetStore, not part of FHR 1.0)

§extra: HashMap<String, Value>

Catch-all for any other FHR fields or custom extensions

Trait Implementations§

Source§

impl Clone for FhrMetadata

Source§

fn clone(&self) -> FhrMetadata

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for FhrMetadata

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for FhrMetadata

Source§

fn default() -> FhrMetadata

Returns the “default value” for a type. Read more
Source§

impl<'de> Deserialize<'de> for FhrMetadata

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl Serialize for FhrMetadata

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,