pub struct Parameter {
pub key: String,
pub param_type: Option<String>,
pub value: Option<String>,
pub values: Vec<String>,
pub description: Option<String>,
pub enum_options: Vec<String>,
pub is_freeform_allowed: Option<bool>,
pub is_multiselect: Option<bool>,
}Expand description
Query parameter definition
Fields§
§key: StringParameter key/name
param_type: Option<String>Parameter type (text, number, date, enum, etc.)
value: Option<String>Default value
values: Vec<String>Multiple values (for multiselect)
description: Option<String>Description
enum_options: Vec<String>Enum options
is_freeform_allowed: Option<bool>Allow freeform input for enum
is_multiselect: Option<bool>Allow multiple selections
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
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