pub struct Annotation {Show 25 fields
pub annotation_id: String,
pub name: String,
pub description: String,
pub start_time: Option<Timestamp>,
pub end_time: Option<Timestamp>,
pub created_by_user_id: String,
pub modified_by_user_id: String,
pub created_date: Option<Timestamp>,
pub modified_date: Option<Timestamp>,
pub run_id: Option<String>,
pub state: Option<i32>,
pub organization_id: String,
pub assigned_to_user_id: String,
pub annotation_type: i32,
pub tags: Vec<String>,
pub legend_config: Option<String>,
pub created_by_condition_id: Option<String>,
pub created_by_rule_condition_version_id: Option<String>,
pub report_rule_version_id: Option<String>,
pub pending: bool,
pub assigned_to_user: Option<User>,
pub deleted_date: Option<Timestamp>,
pub linked_channels: Vec<AnnotationLinkedChannel>,
pub asset_ids: Vec<String>,
pub metadata: Vec<MetadataValue>,
}Fields§
§annotation_id: String§name: String§description: String§start_time: Option<Timestamp>§end_time: Option<Timestamp>§created_by_user_id: String§modified_by_user_id: String§created_date: Option<Timestamp>§modified_date: Option<Timestamp>§run_id: Option<String>§state: Option<i32>§organization_id: String§assigned_to_user_id: String§annotation_type: i32§legend_config: Option<String>§created_by_condition_id: Option<String>§created_by_rule_condition_version_id: Option<String>§report_rule_version_id: Option<String>§pending: bool§assigned_to_user: Option<User>§deleted_date: Option<Timestamp>§linked_channels: Vec<AnnotationLinkedChannel>§asset_ids: Vec<String>§metadata: Vec<MetadataValue>Implementations§
Source§impl Annotation
impl Annotation
Sourcepub fn run_id(&self) -> &str
pub fn run_id(&self) -> &str
Returns the value of run_id, or the default value if run_id is unset.
Sourcepub fn state(&self) -> AnnotationState
pub fn state(&self) -> AnnotationState
Returns the enum value of state, or the default if the field is unset or set to an invalid enum value.
Sourcepub fn set_state(&mut self, value: AnnotationState)
pub fn set_state(&mut self, value: AnnotationState)
Sets state to the provided enum value.
Sourcepub fn annotation_type(&self) -> AnnotationType
pub fn annotation_type(&self) -> AnnotationType
Returns the enum value of annotation_type, or the default if the field is set to an invalid enum value.
Sourcepub fn set_annotation_type(&mut self, value: AnnotationType)
pub fn set_annotation_type(&mut self, value: AnnotationType)
Sets annotation_type to the provided enum value.
Sourcepub fn legend_config(&self) -> &str
pub fn legend_config(&self) -> &str
Returns the value of legend_config, or the default value if legend_config is unset.
Sourcepub fn created_by_condition_id(&self) -> &str
pub fn created_by_condition_id(&self) -> &str
Returns the value of created_by_condition_id, or the default value if created_by_condition_id is unset.
Sourcepub fn created_by_rule_condition_version_id(&self) -> &str
pub fn created_by_rule_condition_version_id(&self) -> &str
Returns the value of created_by_rule_condition_version_id, or the default value if created_by_rule_condition_version_id is unset.
Sourcepub fn report_rule_version_id(&self) -> &str
pub fn report_rule_version_id(&self) -> &str
Returns the value of report_rule_version_id, or the default value if report_rule_version_id is unset.
Trait Implementations§
Source§impl Clone for Annotation
impl Clone for Annotation
Source§fn clone(&self) -> Annotation
fn clone(&self) -> Annotation
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for Annotation
impl Debug for Annotation
Source§impl Default for Annotation
impl Default for Annotation
§impl<'de> Deserialize<'de> for Annotation
impl<'de> Deserialize<'de> for Annotation
§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>,
Source§impl Message for Annotation
impl Message for Annotation
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 Annotation
impl PartialEq for Annotation
§impl Serialize for Annotation
impl Serialize for Annotation
impl StructuralPartialEq for Annotation
Auto Trait Implementations§
impl Freeze for Annotation
impl RefUnwindSafe for Annotation
impl Send for Annotation
impl Sync for Annotation
impl Unpin for Annotation
impl UnwindSafe for Annotation
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§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