pub struct ConfigurationField {
pub description: Option<String>,
pub name: String,
pub options: Option<Vec<String>>,
pub required: bool,
pub secret: Option<bool>,
pub title: String,
pub type_: ConfigurationFieldType,
}
Expand description
ConfigurationField
JSON schema
{
"type": "object",
"required": [
"name",
"required",
"title",
"type"
],
"properties": {
"description": {
"description": "The description of the configuration field.",
"type": "string"
},
"name": {
"description": "The name of the configuration field.",
"type": "string"
},
"options": {
"description": "The options of the configuration field (only for string type).",
"type": [
"array",
"null"
],
"items": {
"type": "string"
}
},
"required": {
"description": "Whether the configuration field is required.",
"type": "boolean"
},
"secret": {
"description": "Whether the configuration field is a secret.",
"type": "boolean"
},
"title": {
"description": "The title of the configuration field.",
"type": "string"
},
"type": {
"description": "The type of the configuration field.",
"type": "string",
"enum": [
"string",
"bool",
"number"
]
}
}
}
Fields§
§description: Option<String>
The description of the configuration field.
name: String
The name of the configuration field.
options: Option<Vec<String>>
The options of the configuration field (only for string type).
required: bool
Whether the configuration field is required.
secret: Option<bool>
Whether the configuration field is a secret.
title: String
The title of the configuration field.
type_: ConfigurationFieldType
The type of the configuration field.
Implementations§
Source§impl ConfigurationField
impl ConfigurationField
pub fn builder() -> ConfigurationField
Trait Implementations§
Source§impl Clone for ConfigurationField
impl Clone for ConfigurationField
Source§fn clone(&self) -> ConfigurationField
fn clone(&self) -> ConfigurationField
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 ConfigurationField
impl Debug for ConfigurationField
Source§impl<'de> Deserialize<'de> for ConfigurationField
impl<'de> Deserialize<'de> for ConfigurationField
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<&ConfigurationField> for ConfigurationField
impl From<&ConfigurationField> for ConfigurationField
Source§fn from(value: &ConfigurationField) -> Self
fn from(value: &ConfigurationField) -> Self
Converts to this type from the input type.
Source§impl From<ConfigurationField> for ConfigurationField
impl From<ConfigurationField> for ConfigurationField
Source§fn from(value: ConfigurationField) -> Self
fn from(value: ConfigurationField) -> Self
Converts to this type from the input type.
Source§impl JsonSchema for ConfigurationField
impl JsonSchema for ConfigurationField
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(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &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 ConfigurationField
impl Serialize for ConfigurationField
Source§impl TryFrom<ConfigurationField> for ConfigurationField
impl TryFrom<ConfigurationField> for ConfigurationField
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: ConfigurationField) -> Result<Self, ConversionError>
fn try_from(value: ConfigurationField) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for ConfigurationField
impl RefUnwindSafe for ConfigurationField
impl Send for ConfigurationField
impl Sync for ConfigurationField
impl Unpin for ConfigurationField
impl UnwindSafe for ConfigurationField
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