pub struct GenomicInterpretation {
pub subject_or_biosample_id: String,
pub interpretation_status: i32,
pub call: Option<Call>,
}Expand description
A statement about the contribution of a genomic element towards the observed phenotype. Note that this does not intend to encode any knowledge or results of specific computations.
Fields§
§subject_or_biosample_id: Stringidentifier for the subject of the interpretation. This MUST be the individual id or a biosample id of the enclosing phenopacket.
interpretation_status: i32§call: Option<Call>Gene or variant identified in subject or biosample and interpreted in relation to the disease diagnosis. In this context athe ‘gene’ is a proxy for an unspecified alteration in the indicated gene.
Implementations§
Source§impl GenomicInterpretation
impl GenomicInterpretation
Sourcepub fn interpretation_status(&self) -> InterpretationStatus
pub fn interpretation_status(&self) -> InterpretationStatus
Returns the enum value of interpretation_status, or the default if the field is set to an invalid enum value.
Sourcepub fn set_interpretation_status(&mut self, value: InterpretationStatus)
pub fn set_interpretation_status(&mut self, value: InterpretationStatus)
Sets interpretation_status to the provided enum value.
Trait Implementations§
Source§impl Clone for GenomicInterpretation
impl Clone for GenomicInterpretation
Source§fn clone(&self) -> GenomicInterpretation
fn clone(&self) -> GenomicInterpretation
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for GenomicInterpretation
impl Debug for GenomicInterpretation
Source§impl Default for GenomicInterpretation
impl Default for GenomicInterpretation
Source§impl Message for GenomicInterpretation
impl Message for GenomicInterpretation
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter.
Source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
Encodes the message to a buffer. Read more
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Encodes the message to a newly allocated buffer.
Source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
Encodes the message with a length-delimiter to a buffer. Read more
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Encodes the message with a length-delimiter to a newly allocated buffer.
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Decodes an instance of the message from a buffer. Read more
Source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Decodes a length-delimited instance of the message from the buffer.
Source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
Decodes an instance of the message from a buffer, and merges it into
self. Read moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
Decodes a length-delimited instance of the message from buffer, and
merges it into
self.Source§impl PartialEq for GenomicInterpretation
impl PartialEq for GenomicInterpretation
impl StructuralPartialEq for GenomicInterpretation
Auto Trait Implementations§
impl Freeze for GenomicInterpretation
impl RefUnwindSafe for GenomicInterpretation
impl Send for GenomicInterpretation
impl Sync for GenomicInterpretation
impl Unpin for GenomicInterpretation
impl UnsafeUnpin for GenomicInterpretation
impl UnwindSafe for GenomicInterpretation
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