pub struct ApiParameter {
pub name: String,
pub param_type: ParameterType,
pub required: bool,
pub default_value: Option<Value>,
pub validation: Option<ValidationRules>,
}
Fields§
§name: String
§param_type: ParameterType
§required: bool
§default_value: Option<Value>
§validation: Option<ValidationRules>
Trait Implementations§
Source§impl Clone for ApiParameter
impl Clone for ApiParameter
Source§fn clone(&self) -> ApiParameter
fn clone(&self) -> ApiParameter
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 ApiParameter
impl Debug for ApiParameter
Source§impl<'de> Deserialize<'de> for ApiParameter
impl<'de> Deserialize<'de> for ApiParameter
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
Source§impl PartialEq for ApiParameter
impl PartialEq for ApiParameter
Source§impl Serialize for ApiParameter
impl Serialize for ApiParameter
impl StructuralPartialEq for ApiParameter
Auto Trait Implementations§
impl Freeze for ApiParameter
impl RefUnwindSafe for ApiParameter
impl Send for ApiParameter
impl Sync for ApiParameter
impl Unpin for ApiParameter
impl UnwindSafe for ApiParameter
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