Struct google_api_proto::google::genomics::v1::VariantAnnotation
source · pub struct VariantAnnotation {
pub type: i32,
pub effect: i32,
pub alternate_bases: String,
pub gene_id: String,
pub transcript_ids: Vec<String>,
pub conditions: Vec<ClinicalCondition>,
pub clinical_significance: i32,
}
Fields§
§type: i32
Type has been adapted from ClinVar’s list of variant types.
effect: i32
Effect of the variant on the coding sequence.
alternate_bases: String
The alternate allele for this variant. If multiple alternate alleles exist at this location, create a separate variant for each one, as they may represent distinct conditions.
gene_id: String
Google annotation ID of the gene affected by this variant. This should be provided when the variant is created.
transcript_ids: Vec<String>
Google annotation IDs of the transcripts affected by this variant. These should be provided when the variant is created.
conditions: Vec<ClinicalCondition>
The set of conditions associated with this variant. A condition describes the way a variant influences human health.
clinical_significance: i32
Describes the clinical significance of a variant. It is adapted from the ClinVar controlled vocabulary for clinical significance described at: http://www.ncbi.nlm.nih.gov/clinvar/docs/clinsig/
Implementations§
source§impl VariantAnnotation
impl VariantAnnotation
sourcepub fn type(&self) -> Type
pub fn type(&self) -> Type
Returns the enum value of type
, or the default if the field is set to an invalid enum value.
sourcepub fn effect(&self) -> Effect
pub fn effect(&self) -> Effect
Returns the enum value of effect
, or the default if the field is set to an invalid enum value.
sourcepub fn set_effect(&mut self, value: Effect)
pub fn set_effect(&mut self, value: Effect)
Sets effect
to the provided enum value.
sourcepub fn clinical_significance(&self) -> ClinicalSignificance
pub fn clinical_significance(&self) -> ClinicalSignificance
Returns the enum value of clinical_significance
, or the default if the field is set to an invalid enum value.
sourcepub fn set_clinical_significance(&mut self, value: ClinicalSignificance)
pub fn set_clinical_significance(&mut self, value: ClinicalSignificance)
Sets clinical_significance
to the provided enum value.
Trait Implementations§
source§impl Clone for VariantAnnotation
impl Clone for VariantAnnotation
source§fn clone(&self) -> VariantAnnotation
fn clone(&self) -> VariantAnnotation
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for VariantAnnotation
impl Debug for VariantAnnotation
source§impl Default for VariantAnnotation
impl Default for VariantAnnotation
source§impl Message for VariantAnnotation
impl Message for VariantAnnotation
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
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,
source§fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
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,
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,
source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
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,
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,
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,
self
.source§impl PartialEq for VariantAnnotation
impl PartialEq for VariantAnnotation
source§fn eq(&self, other: &VariantAnnotation) -> bool
fn eq(&self, other: &VariantAnnotation) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for VariantAnnotation
Auto Trait Implementations§
impl Freeze for VariantAnnotation
impl RefUnwindSafe for VariantAnnotation
impl Send for VariantAnnotation
impl Sync for VariantAnnotation
impl Unpin for VariantAnnotation
impl UnwindSafe for VariantAnnotation
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request