Struct vega_lite_4::TimeUnitParamsBuilder
source · pub struct TimeUnitParamsBuilder { /* private fields */ }
Expand description
Builder for TimeUnitParams
.
Implementations§
source§impl TimeUnitParamsBuilder
impl TimeUnitParamsBuilder
sourcepub fn maxbins<VALUE: Into<f64>>(&mut self, value: VALUE) -> &mut Self
pub fn maxbins<VALUE: Into<f64>>(&mut self, value: VALUE) -> &mut Self
If no unit
is specified, maxbins is used to infer time units.
sourcepub fn step<VALUE: Into<f64>>(&mut self, value: VALUE) -> &mut Self
pub fn step<VALUE: Into<f64>>(&mut self, value: VALUE) -> &mut Self
The number of steps between bins, in terms of the least significant unit provided.
sourcepub fn unit<VALUE: Into<TimeUnit>>(&mut self, value: VALUE) -> &mut Self
pub fn unit<VALUE: Into<TimeUnit>>(&mut self, value: VALUE) -> &mut Self
Defines how date-time values should be binned.
sourcepub fn utc<VALUE: Into<bool>>(&mut self, value: VALUE) -> &mut Self
pub fn utc<VALUE: Into<bool>>(&mut self, value: VALUE) -> &mut Self
True to use UTC timezone. Equivalent to using a utc
prefixed TimeUnit
.
sourcepub fn build(&self) -> Result<TimeUnitParams, TimeUnitParamsBuilderError>
pub fn build(&self) -> Result<TimeUnitParams, TimeUnitParamsBuilderError>
Trait Implementations§
source§impl Clone for TimeUnitParamsBuilder
impl Clone for TimeUnitParamsBuilder
source§fn clone(&self) -> TimeUnitParamsBuilder
fn clone(&self) -> TimeUnitParamsBuilder
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 moreAuto Trait Implementations§
impl RefUnwindSafe for TimeUnitParamsBuilder
impl Send for TimeUnitParamsBuilder
impl Sync for TimeUnitParamsBuilder
impl Unpin for TimeUnitParamsBuilder
impl UnwindSafe for TimeUnitParamsBuilder
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