pub struct OptionsInfoOption {Show 18 fields
pub advanced: bool,
pub default: OptionsInfoOptionDefault,
pub default_str: String,
pub examples: Vec<OptionsInfoOptionExample>,
pub exclusive: bool,
pub field_name: String,
pub groups: Option<String>,
pub help: String,
pub hide: i64,
pub is_password: bool,
pub name: String,
pub no_prefix: bool,
pub required: bool,
pub sensitive: bool,
pub short_opt: Option<String>,
pub type_: String,
pub value: Option<OptionsInfoOptionValue>,
pub value_str: String,
}Expand description
OptionsInfoOption
JSON schema
{
"type": "object",
"required": [
"Advanced",
"Default",
"DefaultStr",
"Exclusive",
"FieldName",
"Help",
"Hide",
"IsPassword",
"Name",
"NoPrefix",
"Required",
"Sensitive",
"Type",
"Value",
"ValueStr"
],
"properties": {
"Advanced": {
"type": "boolean"
},
"Default": {
"description": "Default value for this option.",
"anyOf": [
{
"type": "array",
"items": {
"type": "string"
}
},
{
"type": "boolean"
},
{
"type": "number"
},
{
"type": "string"
},
{
"type": "object",
"required": [
"Valid",
"Value"
],
"properties": {
"Valid": {
"type": "boolean"
},
"Value": {
"type": "boolean"
}
},
"additionalProperties": false
}
]
},
"DefaultStr": {
"type": "string"
},
"Examples": {
"type": "array",
"items": {
"$ref": "#/components/schemas/OptionsInfoOptionExample"
}
},
"Exclusive": {
"type": "boolean"
},
"FieldName": {
"type": "string"
},
"Groups": {
"type": "string"
},
"Help": {
"type": "string"
},
"Hide": {
"type": "integer"
},
"IsPassword": {
"type": "boolean"
},
"Name": {
"type": "string"
},
"NoPrefix": {
"type": "boolean"
},
"Required": {
"type": "boolean"
},
"Sensitive": {
"type": "boolean"
},
"ShortOpt": {
"type": "string"
},
"Type": {
"type": "string"
},
"Value": {
"oneOf": [
{
"type": "null"
},
{
"anyOf": [
{
"type": "boolean"
},
{
"type": "number"
}
]
}
]
},
"ValueStr": {
"type": "string"
}
},
"additionalProperties": true
}Fields§
§advanced: bool§default: OptionsInfoOptionDefaultDefault value for this option.
default_str: String§examples: Vec<OptionsInfoOptionExample>§exclusive: bool§field_name: String§groups: Option<String>§help: String§hide: i64§is_password: bool§name: String§no_prefix: bool§required: bool§sensitive: bool§short_opt: Option<String>§type_: String§value: Option<OptionsInfoOptionValue>§value_str: StringTrait Implementations§
Source§impl Clone for OptionsInfoOption
impl Clone for OptionsInfoOption
Source§fn clone(&self) -> OptionsInfoOption
fn clone(&self) -> OptionsInfoOption
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 OptionsInfoOption
impl Debug for OptionsInfoOption
Source§impl<'de> Deserialize<'de> for OptionsInfoOption
impl<'de> Deserialize<'de> for OptionsInfoOption
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<&OptionsInfoOption> for OptionsInfoOption
impl From<&OptionsInfoOption> for OptionsInfoOption
Source§fn from(value: &OptionsInfoOption) -> Self
fn from(value: &OptionsInfoOption) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for OptionsInfoOption
impl RefUnwindSafe for OptionsInfoOption
impl Send for OptionsInfoOption
impl Sync for OptionsInfoOption
impl Unpin for OptionsInfoOption
impl UnwindSafe for OptionsInfoOption
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