pub struct Annotation {
pub id: String,
pub annotation_type: String,
pub datasets: Vec<String>,
pub description: Option<String>,
pub title: Option<String>,
pub url: Option<Url>,
pub time: DateTime<FixedOffset>,
pub end_time: Option<DateTime<FixedOffset>>,
}Expand description
An annotation.
Fields§
§id: StringUnique ID of the annotation
annotation_type: StringType of the event marked by the annotation. Use only alphanumeric characters or hyphens. For example, “production-deployment”.
datasets: Vec<String>Dataset names for which the annotation appears on charts
description: Option<String>Explanation of the event the annotation marks on the charts
title: Option<String>Summary of the annotation that appears on the charts
url: Option<Url>URL relevant for the event marked by the annotation. For example, link to GitHub pull request.
time: DateTime<FixedOffset>Time the annotation marks on the charts. If you don’t include this field, Axiom assigns the time of the API request to the annotation.
end_time: Option<DateTime<FixedOffset>>End time of the annotation
Trait Implementations§
Source§impl Clone for Annotation
impl Clone for Annotation
Source§fn clone(&self) -> Annotation
fn clone(&self) -> Annotation
Returns a duplicate of the value. Read more
1.0.0 · 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 Annotation
impl Debug for Annotation
Source§impl<'de> Deserialize<'de> for Annotation
impl<'de> Deserialize<'de> for Annotation
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
Source§impl PartialEq for Annotation
impl PartialEq for Annotation
Source§impl Serialize for Annotation
impl Serialize for Annotation
impl Eq 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
Mutably borrows from an owned value. Read more