pub struct DynamicFieldsItem {
pub description: Option<String>,
pub name: Option<String>,
pub required: Option<bool>,
pub title: Option<String>,
pub type_: Option<String>,
}
Expand description
DynamicFieldsItem
JSON schema
{
"type": "object",
"properties": {
"description": {
"description": "The description of the dynamic field.",
"type": "string"
},
"name": {
"description": "The name of the dynamic field.",
"type": "string"
},
"required": {
"description": "Whether the dynamic field is required.",
"type": "boolean"
},
"title": {
"description": "The title of the dynamic field.",
"type": "string"
},
"type": {
"description": "The type of the dynamic field.",
"type": "string"
}
}
}
Fields§
§description: Option<String>
The description of the dynamic field.
name: Option<String>
The name of the dynamic field.
required: Option<bool>
Whether the dynamic field is required.
title: Option<String>
The title of the dynamic field.
type_: Option<String>
The type of the dynamic field.
Implementations§
Source§impl DynamicFieldsItem
impl DynamicFieldsItem
pub fn builder() -> DynamicFieldsItem
Trait Implementations§
Source§impl Clone for DynamicFieldsItem
impl Clone for DynamicFieldsItem
Source§fn clone(&self) -> DynamicFieldsItem
fn clone(&self) -> DynamicFieldsItem
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 DynamicFieldsItem
impl Debug for DynamicFieldsItem
Source§impl Default for DynamicFieldsItem
impl Default for DynamicFieldsItem
Source§impl<'de> Deserialize<'de> for DynamicFieldsItem
impl<'de> Deserialize<'de> for DynamicFieldsItem
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<&DynamicFieldsItem> for DynamicFieldsItem
impl From<&DynamicFieldsItem> for DynamicFieldsItem
Source§fn from(value: &DynamicFieldsItem) -> Self
fn from(value: &DynamicFieldsItem) -> Self
Converts to this type from the input type.
Source§impl From<DynamicFieldsItem> for DynamicFieldsItem
impl From<DynamicFieldsItem> for DynamicFieldsItem
Source§fn from(value: DynamicFieldsItem) -> Self
fn from(value: DynamicFieldsItem) -> Self
Converts to this type from the input type.
Source§impl JsonSchema for DynamicFieldsItem
impl JsonSchema for DynamicFieldsItem
Source§fn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(gen: &mut SchemaGenerator) -> Schema
fn json_schema(gen: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
Whether JSON Schemas generated for this type should be re-used where possible using the
$ref
keyword. Read moreSource§impl Serialize for DynamicFieldsItem
impl Serialize for DynamicFieldsItem
Source§impl TryFrom<DynamicFieldsItem> for DynamicFieldsItem
impl TryFrom<DynamicFieldsItem> for DynamicFieldsItem
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: DynamicFieldsItem) -> Result<Self, ConversionError>
fn try_from(value: DynamicFieldsItem) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for DynamicFieldsItem
impl RefUnwindSafe for DynamicFieldsItem
impl Send for DynamicFieldsItem
impl Sync for DynamicFieldsItem
impl Unpin for DynamicFieldsItem
impl UnwindSafe for DynamicFieldsItem
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