pub struct TypeParamDefsItem {
pub description: Option<String>,
pub max: Option<f64>,
pub min: Option<f64>,
pub name: Option<String>,
pub optional: Option<bool>,
pub options: Option<EnumOptions>,
pub type_: TypeParamDefsItemType,
}
Expand description
TypeParamDefsItem
JSON schema
{
"type": "object",
"required": [
"type"
],
"properties": {
"description": {
"type": "string"
},
"max": {
"type": "number"
},
"min": {
"type": "number"
},
"name": {
"type": "string"
},
"optional": {
"type": "boolean"
},
"options": {
"$ref": "#/$defs/enum_options"
},
"type": {
"type": "string",
"enum": [
"dataType",
"boolean",
"integer",
"enumeration",
"string"
]
}
}
}
Fields§
§description: Option<String>
§max: Option<f64>
§min: Option<f64>
§name: Option<String>
§optional: Option<bool>
§options: Option<EnumOptions>
§type_: TypeParamDefsItemType
Implementations§
Source§impl TypeParamDefsItem
impl TypeParamDefsItem
pub fn builder() -> TypeParamDefsItem
Trait Implementations§
Source§impl Clone for TypeParamDefsItem
impl Clone for TypeParamDefsItem
Source§fn clone(&self) -> TypeParamDefsItem
fn clone(&self) -> TypeParamDefsItem
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 TypeParamDefsItem
impl Debug for TypeParamDefsItem
Source§impl<'de> Deserialize<'de> for TypeParamDefsItem
impl<'de> Deserialize<'de> for TypeParamDefsItem
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 From<&TypeParamDefsItem> for TypeParamDefsItem
impl From<&TypeParamDefsItem> for TypeParamDefsItem
Source§fn from(value: &TypeParamDefsItem) -> Self
fn from(value: &TypeParamDefsItem) -> Self
Converts to this type from the input type.
Source§impl From<TypeParamDefsItem> for TypeParamDefsItem
impl From<TypeParamDefsItem> for TypeParamDefsItem
Source§fn from(value: TypeParamDefsItem) -> Self
fn from(value: TypeParamDefsItem) -> Self
Converts to this type from the input type.
Source§impl Serialize for TypeParamDefsItem
impl Serialize for TypeParamDefsItem
Source§impl TryFrom<TypeParamDefsItem> for TypeParamDefsItem
impl TryFrom<TypeParamDefsItem> for TypeParamDefsItem
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: TypeParamDefsItem) -> Result<Self, ConversionError>
fn try_from(value: TypeParamDefsItem) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for TypeParamDefsItem
impl RefUnwindSafe for TypeParamDefsItem
impl Send for TypeParamDefsItem
impl Sync for TypeParamDefsItem
impl Unpin for TypeParamDefsItem
impl UnwindSafe for TypeParamDefsItem
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