pub struct DataSpec {
pub name: String,
pub source: Option<String>,
pub url: Option<StringOrSignalSpec>,
pub format: Option<DataFormatSpec>,
pub values: Option<Value>,
pub transform: Vec<TransformSpec>,
pub on: Option<Value>,
pub extra: HashMap<String, Value>,
}Fields§
§name: String§source: Option<String>§url: Option<StringOrSignalSpec>§format: Option<DataFormatSpec>§values: Option<Value>§transform: Vec<TransformSpec>§on: Option<Value>§extra: HashMap<String, Value>Implementations§
Source§impl DataSpec
impl DataSpec
pub fn output_signals(&self) -> Vec<String>
pub fn supported( &self, planner_config: &PlannerConfig, task_scope: &TaskScope, scope: &[u32], ) -> DependencyNodeSupported
pub fn is_selection_store(&self) -> bool
pub fn local_datetime_columns_produced( &self, chart_spec: &ChartSpec, task_scope: &TaskScope, usage_scope: &[u32], ) -> Result<Vec<String>>
Sourcepub fn fuse_into(&self, child: &mut DataSpec) -> Result<()>
pub fn fuse_into(&self, child: &mut DataSpec) -> Result<()>
Fuse this dataset into a child dataset. This mutates the child to include this dataset’s source data and transforms. The name of the child is preserved.
pub fn has_aggregate(&self) -> bool
Trait Implementations§
Source§impl<'de> Deserialize<'de> for DataSpec
impl<'de> Deserialize<'de> for DataSpec
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
impl StructuralPartialEq for DataSpec
Auto Trait Implementations§
impl Freeze for DataSpec
impl RefUnwindSafe for DataSpec
impl Send for DataSpec
impl Sync for DataSpec
impl Unpin for DataSpec
impl UnwindSafe for DataSpec
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