pub struct Parameter {
pub id: String,
pub param_type: String,
pub name: String,
pub slug: String,
pub default: Option<Value>,
pub required: bool,
pub options: Option<Vec<ParameterOption>>,
pub values_source_type: Option<String>,
pub values_source_config: Option<Value>,
}
Expand description
Parameter definition for cards and dashboards
Fields§
§id: String
Unique identifier for the parameter
param_type: String
Parameter type (e.g., “date/relative”, “string/=”, “number/>=”)
name: String
Display name for the parameter
slug: String
URL slug for the parameter
default: Option<Value>
Default value for the parameter
required: bool
Whether the parameter is required
options: Option<Vec<ParameterOption>>
Options for the parameter (for select/dropdown types)
values_source_type: Option<String>
Values for list parameters
values_source_config: Option<Value>
Configuration for values source
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Parameter
impl<'de> Deserialize<'de> for Parameter
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
impl StructuralPartialEq for Parameter
Auto Trait Implementations§
impl Freeze for Parameter
impl RefUnwindSafe for Parameter
impl Send for Parameter
impl Sync for Parameter
impl Unpin for Parameter
impl UnwindSafe for Parameter
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