#[non_exhaustive]pub struct SeriesSpec {
pub name: String,
pub style: String,
pub points: Vec<[f64; 2]>,
pub dataset: Option<String>,
pub x: Option<String>,
pub y: Option<String>,
pub color: Option<String>,
pub width: Option<f32>,
}Available on crate feature
spec only.Expand description
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.name: StringSeries name.
style: Stringline or scatter.
points: Vec<[f64; 2]>Inline points.
dataset: Option<String>Dataset name, when the points come from a dataset.
x: Option<String>X column for a dataset series.
y: Option<String>Y column for a dataset series.
color: Option<String>Color as #rrggbb.
width: Option<f32>Line width or marker size.
Trait Implementations§
Source§impl Clone for SeriesSpec
impl Clone for SeriesSpec
Source§impl Debug for SeriesSpec
impl Debug for SeriesSpec
Source§impl Default for SeriesSpec
impl Default for SeriesSpec
Source§impl<'de> Deserialize<'de> for SeriesSpecwhere
SeriesSpec: Default,
impl<'de> Deserialize<'de> for SeriesSpecwhere
SeriesSpec: Default,
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 JsonSchema for SeriesSpec
impl JsonSchema for SeriesSpec
Source§fn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
Whether JSON Schemas generated for this type should be re-used where possible using the
$ref keyword. Read moreAuto Trait Implementations§
impl Forget for SeriesSpec
impl Freeze for SeriesSpec
impl Move for SeriesSpec
impl RefUnwindSafe for SeriesSpec
impl Send for SeriesSpecwhere
RawVecInner: Send,
impl Sync for SeriesSpecwhere
RawVecInner: Sync,
impl Unpin for SeriesSpec
impl UnsafeUnpin for SeriesSpecwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<[f64; 2]>: UnsafeUnpin,
impl UnwindSafe for SeriesSpecwhere
RawVecInner: UnwindSafe,
Blanket Implementations§
impl<T> Allocation for T
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more