Struct perspective_client::config::ViewConfigUpdate
source · pub struct ViewConfigUpdate {
pub group_by: Option<Vec<String>>,
pub split_by: Option<Vec<String>>,
pub columns: Option<Vec<Option<String>>>,
pub filter: Option<Vec<Filter>>,
pub filter_op: Option<FilterReducer>,
pub sort: Option<Vec<Sort>>,
pub expressions: Option<Expressions>,
pub aggregates: Option<HashMap<String, Aggregate>>,
pub group_by_depth: Option<u32>,
}Fields§
§group_by: Option<Vec<String>>§split_by: Option<Vec<String>>§columns: Option<Vec<Option<String>>>§filter: Option<Vec<Filter>>§filter_op: Option<FilterReducer>§sort: Option<Vec<Sort>>§expressions: Option<Expressions>§aggregates: Option<HashMap<String, Aggregate>>§group_by_depth: Option<u32>Trait Implementations§
source§impl Clone for ViewConfigUpdate
impl Clone for ViewConfigUpdate
source§fn clone(&self) -> ViewConfigUpdate
fn clone(&self) -> ViewConfigUpdate
Returns a copy 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 ViewConfigUpdate
impl Debug for ViewConfigUpdate
source§impl Default for ViewConfigUpdate
impl Default for ViewConfigUpdate
source§fn default() -> ViewConfigUpdate
fn default() -> ViewConfigUpdate
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for ViewConfigUpdate
impl<'de> Deserialize<'de> for ViewConfigUpdate
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 From<ViewConfig> for ViewConfigUpdate
impl From<ViewConfig> for ViewConfigUpdate
source§fn from(value: ViewConfig) -> Self
fn from(value: ViewConfig) -> Self
Converts to this type from the input type.
source§impl From<ViewConfigUpdate> for ViewConfig
impl From<ViewConfigUpdate> for ViewConfig
source§fn from(value: ViewConfigUpdate) -> Self
fn from(value: ViewConfigUpdate) -> Self
Converts to this type from the input type.
source§impl Serialize for ViewConfigUpdate
impl Serialize for ViewConfigUpdate
source§impl TS for ViewConfigUpdate
impl TS for ViewConfigUpdate
§type WithoutGenerics = ViewConfigUpdate
type WithoutGenerics = ViewConfigUpdate
If this type does not have generic parameters, then
WithoutGenerics should just be Self.
If the type does have generic parameters, then all generic parameters must be replaced with
a dummy type, e.g ts_rs::Dummy or ().
The only requirement for these dummy types is that EXPORT_TO must be None. Read moresource§fn decl_concrete() -> String
fn decl_concrete() -> String
Declaration of this type using the supplied generic arguments.
The resulting TypeScript definition will not be generic. For that, see
TS::decl().
If this type is not generic, then this function is equivalent to TS::decl().source§fn decl() -> String
fn decl() -> String
Declaration of this type, e.g.
type User = { user_id: number, ... }.
This function will panic if the type has no declaration. Read moresource§fn inline() -> String
fn inline() -> String
Formats this types definition in TypeScript, e.g
{ user_id: number }.
This function will panic if the type cannot be inlined.source§fn inline_flattened() -> String
fn inline_flattened() -> String
Flatten a type declaration.
This function will panic if the type cannot be flattened.
This function will panic if the type cannot be flattened.
source§fn visit_generics(v: &mut impl TypeVisitor)where
Self: 'static,
fn visit_generics(v: &mut impl TypeVisitor)where
Self: 'static,
Iterates over all type parameters of this type.
source§fn output_path() -> Option<&'static Path>
fn output_path() -> Option<&'static Path>
Returns the output path to where
The returned path does not include the base directory from
T should be exported.The returned path does not include the base directory from
TS_RS_EXPORT_DIR. Read moresource§fn visit_dependencies(v: &mut impl TypeVisitor)where
Self: 'static,
fn visit_dependencies(v: &mut impl TypeVisitor)where
Self: 'static,
Iterates over all dependency of this type.
source§const DOCS: Option<&'static str> = None
const DOCS: Option<&'static str> = None
JSDoc comment to describe this type in TypeScript - when
TS is derived, docs are
automatically read from your doc comments or #[doc = ".."] attributessource§fn dependencies() -> Vec<Dependency>where
Self: 'static,
fn dependencies() -> Vec<Dependency>where
Self: 'static,
Resolves all dependencies of this type recursively.
source§fn export() -> Result<(), ExportError>where
Self: 'static,
fn export() -> Result<(), ExportError>where
Self: 'static,
Manually export this type to the filesystem.
To export this type together with all of its dependencies, use
TS::export_all. Read moresource§fn export_all() -> Result<(), ExportError>where
Self: 'static,
fn export_all() -> Result<(), ExportError>where
Self: 'static,
Manually export this type to the filesystem, together with all of its dependencies.
To export only this type, without its dependencies, use
To export only this type, without its dependencies, use
TS::export. Read moresource§fn export_all_to(out_dir: impl AsRef<Path>) -> Result<(), ExportError>where
Self: 'static,
fn export_all_to(out_dir: impl AsRef<Path>) -> Result<(), ExportError>where
Self: 'static,
Manually export this type into the given directory, together with all of its dependencies.
To export only this type, without its dependencies, use
To export only this type, without its dependencies, use
TS::export. Read moresource§fn export_to_string() -> Result<String, ExportError>where
Self: 'static,
fn export_to_string() -> Result<String, ExportError>where
Self: 'static,
Auto Trait Implementations§
impl Freeze for ViewConfigUpdate
impl RefUnwindSafe for ViewConfigUpdate
impl Send for ViewConfigUpdate
impl Sync for ViewConfigUpdate
impl Unpin for ViewConfigUpdate
impl UnwindSafe for ViewConfigUpdate
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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