Struct vega_lite_4::TimeUnitParams
source · pub struct TimeUnitParams {
pub maxbins: Option<f64>,
pub step: Option<f64>,
pub unit: Option<TimeUnit>,
pub utc: Option<bool>,
}
Fields§
§maxbins: Option<f64>
If no unit
is specified, maxbins is used to infer time units.
step: Option<f64>
The number of steps between bins, in terms of the least significant unit provided.
unit: Option<TimeUnit>
Defines how date-time values should be binned.
utc: Option<bool>
True to use UTC timezone. Equivalent to using a utc
prefixed TimeUnit
.
Trait Implementations§
source§impl Clone for TimeUnitParams
impl Clone for TimeUnitParams
source§fn clone(&self) -> TimeUnitParams
fn clone(&self) -> TimeUnitParams
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 TimeUnitParams
impl Debug for TimeUnitParams
source§impl Default for TimeUnitParams
impl Default for TimeUnitParams
source§fn default() -> TimeUnitParams
fn default() -> TimeUnitParams
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for TimeUnitParams
impl<'de> Deserialize<'de> for TimeUnitParams
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 From<TimeUnitParams> for TimeUnitUnion
impl From<TimeUnitParams> for TimeUnitUnion
source§fn from(original: TimeUnitParams) -> TimeUnitUnion
fn from(original: TimeUnitParams) -> TimeUnitUnion
Converts to this type from the input type.
Auto Trait Implementations§
impl RefUnwindSafe for TimeUnitParams
impl Send for TimeUnitParams
impl Sync for TimeUnitParams
impl Unpin for TimeUnitParams
impl UnwindSafe for TimeUnitParams
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