pub struct DataMetric {
pub script_path: String,
pub table_path: String,
pub kind: Kind,
pub name: String,
pub expr: String,
pub filter: Option<String>,
}Expand description
DataMetric : One // measure or // dimension declaration, as catalogued from the script that materializes the table. expr and filter are the author’s own SQL: a reader renders a measure as expr plus, when filter is set, a trailing FILTER (WHERE filter).
Fields§
§script_path: StringThe declaring script, and the path reads are authorized against
table_path: StringCanonical scheme-less DuckLake path, <lake>/<schema>.<table> (schema defaults to main)
kind: Kind§name: String§expr: String§filter: Option<String>Row predicate from a measure’s trailing where
Implementations§
Source§impl DataMetric
impl DataMetric
Sourcepub fn new(
script_path: String,
table_path: String,
kind: Kind,
name: String,
expr: String,
) -> DataMetric
pub fn new( script_path: String, table_path: String, kind: Kind, name: String, expr: String, ) -> DataMetric
One // measure or // dimension declaration, as catalogued from the script that materializes the table. expr and filter are the author’s own SQL: a reader renders a measure as expr plus, when filter is set, a trailing FILTER (WHERE filter).
Trait Implementations§
Source§impl Clone for DataMetric
impl Clone for DataMetric
Source§fn clone(&self) -> DataMetric
fn clone(&self) -> DataMetric
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 DataMetric
impl Debug for DataMetric
Source§impl Default for DataMetric
impl Default for DataMetric
Source§fn default() -> DataMetric
fn default() -> DataMetric
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for DataMetric
impl<'de> Deserialize<'de> for DataMetric
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 DataMetric
impl PartialEq for DataMetric
Source§impl Serialize for DataMetric
impl Serialize for DataMetric
impl StructuralPartialEq for DataMetric
Auto Trait Implementations§
impl Freeze for DataMetric
impl RefUnwindSafe for DataMetric
impl Send for DataMetric
impl Sync for DataMetric
impl Unpin for DataMetric
impl UnsafeUnpin for DataMetric
impl UnwindSafe for DataMetric
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