pub struct TimeUnitTransformSpec {
pub field: String,
pub units: Option<Vec<TimeUnitUnitSpec>>,
pub step: Option<f64>,
pub timezone: Option<TimeUnitTimeZoneSpec>,
pub interval: Option<bool>,
pub extent: Option<(String, String)>,
pub maxbins: Option<f64>,
pub signal: Option<String>,
pub as_: Option<Vec<String>>,
pub extra: HashMap<String, Value>,
}Fields§
§field: String§units: Option<Vec<TimeUnitUnitSpec>>§step: Option<f64>§timezone: Option<TimeUnitTimeZoneSpec>§interval: Option<bool>§extent: Option<(String, String)>§maxbins: Option<f64>§signal: Option<String>§as_: Option<Vec<String>>§extra: HashMap<String, Value>Implementations§
Source§impl TimeUnitTransformSpec
impl TimeUnitTransformSpec
pub fn normalize_as(&self) -> (String, String)
Trait Implementations§
Source§impl Clone for TimeUnitTransformSpec
impl Clone for TimeUnitTransformSpec
Source§fn clone(&self) -> TimeUnitTransformSpec
fn clone(&self) -> TimeUnitTransformSpec
Returns a duplicate 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 TimeUnitTransformSpec
impl Debug for TimeUnitTransformSpec
Source§impl<'de> Deserialize<'de> for TimeUnitTransformSpec
impl<'de> Deserialize<'de> for TimeUnitTransformSpec
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 PartialEq for TimeUnitTransformSpec
impl PartialEq for TimeUnitTransformSpec
Source§impl Serialize for TimeUnitTransformSpec
impl Serialize for TimeUnitTransformSpec
Source§impl TransformSpecTrait for TimeUnitTransformSpec
impl TransformSpecTrait for TimeUnitTransformSpec
fn supported(&self) -> bool
fn output_signals(&self) -> Vec<String>
fn transform_columns( &self, datum_var: &Option<ScopedVariable>, _usage_scope: &[u32], _task_scope: &TaskScope, _vl_selection_fields: &VlSelectionFields, ) -> TransformColumns
fn local_datetime_columns_produced( &self, input_local_datetime_columns: &[String], ) -> Vec<String>
fn supported_and_allowed( &self, planner_config: &PlannerConfig, task_scope: &TaskScope, scope: &[u32], ) -> bool
fn input_vars(&self) -> Result<Vec<InputVariable>>
impl StructuralPartialEq for TimeUnitTransformSpec
Auto Trait Implementations§
impl Freeze for TimeUnitTransformSpec
impl RefUnwindSafe for TimeUnitTransformSpec
impl Send for TimeUnitTransformSpec
impl Sync for TimeUnitTransformSpec
impl Unpin for TimeUnitTransformSpec
impl UnwindSafe for TimeUnitTransformSpec
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§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more