pub struct EnumerationArg {
pub description: Option<String>,
pub name: Option<String>,
pub options: EnumOptions,
}
Expand description
EnumerationArg
JSON schema
{
"type": "object",
"required": [
"options"
],
"properties": {
"description": {
"type": "string"
},
"name": {
"type": "string"
},
"options": {
"$ref": "#/$defs/enum_options"
}
},
"additionalProperties": false
}
Fields§
§description: Option<String>
§name: Option<String>
§options: EnumOptions
Implementations§
Source§impl EnumerationArg
impl EnumerationArg
pub fn builder() -> EnumerationArg
Trait Implementations§
Source§impl Clone for EnumerationArg
impl Clone for EnumerationArg
Source§fn clone(&self) -> EnumerationArg
fn clone(&self) -> EnumerationArg
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 EnumerationArg
impl Debug for EnumerationArg
Source§impl<'de> Deserialize<'de> for EnumerationArg
impl<'de> Deserialize<'de> for EnumerationArg
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<&EnumerationArg> for EnumerationArg
impl From<&EnumerationArg> for EnumerationArg
Source§fn from(value: &EnumerationArg) -> Self
fn from(value: &EnumerationArg) -> Self
Converts to this type from the input type.
Source§impl From<EnumerationArg> for ArgumentsItem
impl From<EnumerationArg> for ArgumentsItem
Source§fn from(value: EnumerationArg) -> Self
fn from(value: EnumerationArg) -> Self
Converts to this type from the input type.
Source§impl From<EnumerationArg> for EnumerationArg
impl From<EnumerationArg> for EnumerationArg
Source§fn from(value: EnumerationArg) -> Self
fn from(value: EnumerationArg) -> Self
Converts to this type from the input type.
Source§impl From<EnumerationArg> for EnumerationArg
Available on crate feature parse
only.
impl From<EnumerationArg> for EnumerationArg
Available on crate feature
parse
only.Source§fn from(value: EnumerationArg) -> Self
fn from(value: EnumerationArg) -> Self
Converts to this type from the input type.
Source§impl<C: Context> Parse<C> for EnumerationArg
Available on crate feature parse
only.
impl<C: Context> Parse<C> for EnumerationArg
Available on crate feature
parse
only.Source§type Parsed = EnumerationArg
type Parsed = EnumerationArg
The parsed type. Read more
Source§type Error = ArgumentsItemError
type Error = ArgumentsItemError
The error type for this parser.
Source§fn parse(self, ctx: &mut C) -> Result<EnumerationArg, ArgumentsItemError>
fn parse(self, ctx: &mut C) -> Result<EnumerationArg, ArgumentsItemError>
Parse and return a parsed type or error.
Source§impl Serialize for EnumerationArg
impl Serialize for EnumerationArg
Source§impl TryFrom<EnumerationArg> for EnumerationArg
impl TryFrom<EnumerationArg> for EnumerationArg
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: EnumerationArg) -> Result<Self, ConversionError>
fn try_from(value: EnumerationArg) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for EnumerationArg
impl RefUnwindSafe for EnumerationArg
impl Send for EnumerationArg
impl Sync for EnumerationArg
impl Unpin for EnumerationArg
impl UnwindSafe for EnumerationArg
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