Trait mz_adapter::session::vars::Var
source · pub trait Var: Debug {
fn name(&self) -> &'static str;
fn value(&self) -> String;
fn description(&self) -> &'static str;
fn type_name(&self) -> &'static str;
fn visible(&self, user: &User) -> bool;
fn safe(&self) -> bool;
fn experimental(&self) -> bool { ... }
}
Expand description
A Var
represents a configuration parameter of an arbitrary type.
Required Methods§
sourcefn value(&self) -> String
fn value(&self) -> String
Constructs a flattened string representation of the current value of the configuration parameter.
The resulting string is guaranteed to be parsable if provided to
Value::parse
as a VarInput::Flat
.
sourcefn description(&self) -> &'static str
fn description(&self) -> &'static str
Returns a short sentence describing the purpose of the configuration parameter.