Struct vega_lite_4::EqualDateTimeBuilder
source · pub struct EqualDateTimeBuilder { /* private fields */ }
Expand description
Builder for EqualDateTime
.
Implementations§
source§impl EqualDateTimeBuilder
impl EqualDateTimeBuilder
sourcepub fn date<VALUE: Into<f64>>(&mut self, value: VALUE) -> &mut Self
pub fn date<VALUE: Into<f64>>(&mut self, value: VALUE) -> &mut Self
Integer value representing the date (day of the month) from 1-31.
sourcepub fn day<VALUE: Into<Day>>(&mut self, value: VALUE) -> &mut Self
pub fn day<VALUE: Into<Day>>(&mut self, value: VALUE) -> &mut Self
Value representing the day of a week. This can be one of: (1) integer value – 1
represents Monday; (2) case-insensitive day name (e.g., "Monday"
); (3)
case-insensitive, 3-character short day name (e.g., "Mon"
).
Warning: A DateTime definition object with day
** should not be combined with
year
, quarter
, month
, or date
.
sourcepub fn hours<VALUE: Into<f64>>(&mut self, value: VALUE) -> &mut Self
pub fn hours<VALUE: Into<f64>>(&mut self, value: VALUE) -> &mut Self
Integer value representing the hour of a day from 0-23.
sourcepub fn milliseconds<VALUE: Into<f64>>(&mut self, value: VALUE) -> &mut Self
pub fn milliseconds<VALUE: Into<f64>>(&mut self, value: VALUE) -> &mut Self
Integer value representing the millisecond segment of time.
sourcepub fn minutes<VALUE: Into<f64>>(&mut self, value: VALUE) -> &mut Self
pub fn minutes<VALUE: Into<f64>>(&mut self, value: VALUE) -> &mut Self
Integer value representing the minute segment of time from 0-59.
sourcepub fn month<VALUE: Into<Month>>(&mut self, value: VALUE) -> &mut Self
pub fn month<VALUE: Into<Month>>(&mut self, value: VALUE) -> &mut Self
One of: (1) integer value representing the month from 1
-12
. 1
represents January;
(2) case-insensitive month name (e.g., "January"
); (3) case-insensitive, 3-character
short month name (e.g., "Jan"
).
sourcepub fn quarter<VALUE: Into<f64>>(&mut self, value: VALUE) -> &mut Self
pub fn quarter<VALUE: Into<f64>>(&mut self, value: VALUE) -> &mut Self
Integer value representing the quarter of the year (from 1-4).
sourcepub fn seconds<VALUE: Into<f64>>(&mut self, value: VALUE) -> &mut Self
pub fn seconds<VALUE: Into<f64>>(&mut self, value: VALUE) -> &mut Self
Integer value representing the second segment (0-59) of a time value
sourcepub fn utc<VALUE: Into<bool>>(&mut self, value: VALUE) -> &mut Self
pub fn utc<VALUE: Into<bool>>(&mut self, value: VALUE) -> &mut Self
A boolean flag indicating if date time is in utc time. If false, the date time is in local time
sourcepub fn year<VALUE: Into<f64>>(&mut self, value: VALUE) -> &mut Self
pub fn year<VALUE: Into<f64>>(&mut self, value: VALUE) -> &mut Self
Integer value representing the year.
sourcepub fn expr<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn expr<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
Vega expression (which can refer to Vega-Lite parameters).
sourcepub fn build(&self) -> Result<EqualDateTime, EqualDateTimeBuilderError>
pub fn build(&self) -> Result<EqualDateTime, EqualDateTimeBuilderError>
Trait Implementations§
source§impl Clone for EqualDateTimeBuilder
impl Clone for EqualDateTimeBuilder
source§fn clone(&self) -> EqualDateTimeBuilder
fn clone(&self) -> EqualDateTimeBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more