pub struct Binding {
pub set: Option<String>,
pub profile: Option<String>,
pub vars: Map<String, Value>,
pub queries: Vec<QueryEntry>,
pub locale: Option<String>,
pub outputs: Vec<Output>,
pub schedules: Vec<String>,
pub parsed: Option<Arc<ParsedBinding>>,
pub profile_at: Option<ProfileAt>,
}Expand description
A Report paired with a Set (or the report’s single default Binding): everything a run needs.
Fields§
§set: Option<String>The Set name; None for a report without sets:.
profile: Option<String>The inherited connection (Set, report, folder +profile, default_profile), as
written: it may hold Jinja. A query’s own profile: or a source’s overrides it.
vars: Map<String, Value>Fully merged vars: project < folders < report < Set registry < inline Binding.
queries: Vec<QueryEntry>§locale: Option<String>The locale: for the number filters: Set, report, folder +locale, project; None: en.
outputs: Vec<Output>The Binding’s outputs, in declared order (output: as a list, or one map). Each formats
its own subset of queries from the same run.
schedules: Vec<String>Names of every schedules.yml entry that runs this Binding.
parsed: Option<Arc<ParsedBinding>>The parse pass for the load’s inputs: each query’s connection and sources. None until
the project is loaded, and for an ad hoc Binding.
profile_at: Option<ProfileAt>Where the inherited profile is written, for messages about its value.
Implementations§
Source§impl Binding
impl Binding
Sourcepub fn destinations(&self) -> impl Iterator<Item = &Destination>
pub fn destinations(&self) -> impl Iterator<Item = &Destination>
Every output’s destinations, in order: the order of crate::parse::ParsedBinding::destinations.