pub enum ArgumentType {
String {
max_length: Option<usize>,
},
Number {
min: Option<f64>,
max: Option<f64>,
},
Integer {
min: Option<i64>,
max: Option<i64>,
},
Boolean,
Array {
item_type: Box<ArgumentType>,
},
Object {
properties: HashMap<String, ArgumentType>,
},
Enum {
values: Vec<String>,
},
Any,
}
Expand description
Argument types
Variants§
String
Number
Integer
Boolean
Array
Fields
§
item_type: Box<ArgumentType>
Object
Fields
§
properties: HashMap<String, ArgumentType>
Enum
Any
Trait Implementations§
Source§impl Clone for ArgumentType
impl Clone for ArgumentType
Source§fn clone(&self) -> ArgumentType
fn clone(&self) -> ArgumentType
Returns a copy 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 ArgumentType
impl Debug for ArgumentType
Source§impl<'de> Deserialize<'de> for ArgumentType
impl<'de> Deserialize<'de> for ArgumentType
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 ArgumentType
impl RefUnwindSafe for ArgumentType
impl Send for ArgumentType
impl Sync for ArgumentType
impl Unpin for ArgumentType
impl UnwindSafe for ArgumentType
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