Enum omf::NumberRange
source · pub enum NumberRange {
Float {
min: f64,
max: f64,
},
Integer {
min: i64,
max: i64,
},
Date {
min: NaiveDate,
max: NaiveDate,
},
DateTime {
min: DateTime<Utc>,
max: DateTime<Utc>,
},
}
Expand description
Specifies the minimum and maximum values of a number colormap.
Values outside this range will use the color at the ends of the gradient. The variant used should match the type of the number array.
Variants§
Trait Implementations§
source§impl Clone for NumberRange
impl Clone for NumberRange
source§fn clone(&self) -> NumberRange
fn clone(&self) -> NumberRange
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 NumberRange
impl Debug for NumberRange
source§impl<'de> Deserialize<'de> for NumberRange
impl<'de> Deserialize<'de> for NumberRange
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 Display for NumberRange
impl Display for NumberRange
source§impl JsonSchema for NumberRange
impl JsonSchema for NumberRange
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(gen: &mut SchemaGenerator) -> Schema
fn json_schema(gen: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
§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 moresource§impl PartialEq for NumberRange
impl PartialEq for NumberRange
source§impl Serialize for NumberRange
impl Serialize for NumberRange
impl Copy for NumberRange
impl StructuralPartialEq for NumberRange
Auto Trait Implementations§
impl Freeze for NumberRange
impl RefUnwindSafe for NumberRange
impl Send for NumberRange
impl Sync for NumberRange
impl Unpin for NumberRange
impl UnwindSafe for NumberRange
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)