pub struct ActionParam {
pub name: String,
pub param_type: FieldType,
pub required: bool,
pub default_value: Option<String>,
pub source: String,
}Expand description
A parameter for a compiled action.
Fields§
§name: StringParameter name.
param_type: FieldTypeInferred type.
required: boolWhether this parameter is required.
default_value: Option<String>Default value, if known.
source: StringWhere this parameter appears: “form_field”, “url_param”, “json_body”, “path_param”.
Trait Implementations§
Source§impl Clone for ActionParam
impl Clone for ActionParam
Source§fn clone(&self) -> ActionParam
fn clone(&self) -> ActionParam
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ActionParam
impl Debug for ActionParam
Source§impl<'de> Deserialize<'de> for ActionParam
impl<'de> Deserialize<'de> for ActionParam
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 ActionParam
impl RefUnwindSafe for ActionParam
impl Send for ActionParam
impl Sync for ActionParam
impl Unpin for ActionParam
impl UnsafeUnpin for ActionParam
impl UnwindSafe for ActionParam
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