Struct chart_js_rs::types::LineAnnotation
source · pub struct LineAnnotation {
pub borderColor: String,
pub borderDash: Vec<NumberString>,
pub borderWidth: NumberString,
pub drawTime: String,
pub type: LineAnnotationType,
pub xMax: NumberOrDateString,
pub xMin: NumberOrDateString,
pub yMax: NumberOrDateString,
pub yMin: NumberOrDateString,
pub yScaleID: NumberString,
}
Fields§
§borderColor: String
§borderDash: Vec<NumberString>
§borderWidth: NumberString
§drawTime: String
§type: LineAnnotationType
§xMax: NumberOrDateString
§xMin: NumberOrDateString
§yMax: NumberOrDateString
§yMin: NumberOrDateString
§yScaleID: NumberString
Trait Implementations§
source§impl Clone for LineAnnotation
impl Clone for LineAnnotation
source§fn clone(&self) -> LineAnnotation
fn clone(&self) -> LineAnnotation
Returns a copy 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 LineAnnotation
impl Debug for LineAnnotation
source§impl Default for LineAnnotation
impl Default for LineAnnotation
source§fn default() -> LineAnnotation
fn default() -> LineAnnotation
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for LineAnnotation
impl<'de> Deserialize<'de> for LineAnnotation
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 Ord for LineAnnotation
impl Ord for LineAnnotation
source§fn cmp(&self, other: &LineAnnotation) -> Ordering
fn cmp(&self, other: &LineAnnotation) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for LineAnnotation
impl PartialEq for LineAnnotation
source§fn eq(&self, other: &LineAnnotation) -> bool
fn eq(&self, other: &LineAnnotation) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for LineAnnotation
impl PartialOrd for LineAnnotation
source§fn partial_cmp(&self, other: &LineAnnotation) -> Option<Ordering>
fn partial_cmp(&self, other: &LineAnnotation) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl Serialize for LineAnnotation
impl Serialize for LineAnnotation
impl Annotation for LineAnnotation
impl Eq for LineAnnotation
impl StructuralPartialEq for LineAnnotation
Auto Trait Implementations§
impl Freeze for LineAnnotation
impl RefUnwindSafe for LineAnnotation
impl Send for LineAnnotation
impl Sync for LineAnnotation
impl Unpin for LineAnnotation
impl UnwindSafe for LineAnnotation
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