[][src]Struct vega_lite_4::TimeUnitParamsBuilder

pub struct TimeUnitParamsBuilder { /* fields omitted */ }

Builder for TimeUnitParams.

Implementations

impl TimeUnitParamsBuilder[src]

pub fn maxbins<VALUE: Into<f64>>(&mut self, value: VALUE) -> &mut Self[src]

If no unit is specified, maxbins is used to infer time units.

pub fn step<VALUE: Into<f64>>(&mut self, value: VALUE) -> &mut Self[src]

The number of steps between bins, in terms of the least significant unit provided.

pub fn unit<VALUE: Into<TimeUnit>>(&mut self, value: VALUE) -> &mut Self[src]

Defines how date-time values should be binned.

pub fn utc<VALUE: Into<bool>>(&mut self, value: VALUE) -> &mut Self[src]

True to use UTC timezone. Equivalent to using a utc prefixed TimeUnit.

pub fn build(&self) -> Result<TimeUnitParams, String>[src]

Builds a new TimeUnitParams.

Errors

If a required field has not been initialized.

Trait Implementations

impl Clone for TimeUnitParamsBuilder[src]

impl Default for TimeUnitParamsBuilder[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.