pub struct SetEntry {
pub name: Option<Loose<String>>,
pub profile: Option<Located<Loose<String>>>,
pub vars: Option<Loose<Map<String, Value>>>,
pub exclude: Option<Located<Loose<Vec<String>>>>,
pub queries: Option<Located<Loose<Vec<SetQueryItem>>>>,
pub tab_names: Option<Loose<Map<String, Value>>>,
pub output: Option<Value>,
pub locale: Option<Loose<String>>,
pub schedule: Option<IgnoredAny>,
pub unknown: UnknownKeys,
}Expand description
A Set declared in the report: a named variant of it.
Fields§
§name: Option<Loose<String>>The Set’s name. A report can also name Sets declared in sets.yml.
profile: Option<Located<Loose<String>>>The connection this Set runs on. May use Jinja with var(), env_var(), run.* and target.name.
vars: Option<Loose<Map<String, Value>>>Variables, read in SQL and YAML with var('name'). Values can be strings, numbers, booleans, lists or maps.
exclude: Option<Located<Loose<Vec<String>>>>Queries to leave out of this Set, by name.
queries: Option<Located<Loose<Vec<SetQueryItem>>>>Replaces the report’s queries for this Set.
tab_names: Option<Loose<Map<String, Value>>>Renames tabs for this Set: query name to tab name.
output: Option<Value>Output settings for this Set: a map changes the inherited output (with several, the one its name: names); a list replaces them all.
locale: Option<Loose<String>>The locale for this Set’s number filters (fr-FR), above the report’s.
schedule: Option<IgnoredAny>Removed: schedules live in schedules.yml. Read only to say so.
unknown: UnknownKeysTrait Implementations§
Source§impl<'de> Deserialize<'de> for SetEntry
impl<'de> Deserialize<'de> for SetEntry
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 JsonSchema for SetEntry
impl JsonSchema for SetEntry
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreAuto Trait Implementations§
impl Freeze for SetEntry
impl RefUnwindSafe for SetEntry
impl Send for SetEntry
impl Sync for SetEntry
impl Unpin for SetEntry
impl UnsafeUnpin for SetEntry
impl UnwindSafe for SetEntry
Blanket Implementations§
impl<T> Allocation for T
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