pub struct OptionsValue {
pub description: Option<String>,
pub values: Vec<String>,
}
Expand description
OptionsValue
JSON schema
{
"type": "object",
"required": [
"values"
],
"properties": {
"description": {
"type": "string"
},
"values": {
"type": "array",
"items": {
"type": "string"
}
}
},
"additionalProperties": false
}
Fields§
§description: Option<String>
§values: Vec<String>
Implementations§
Source§impl OptionsValue
impl OptionsValue
pub fn builder() -> OptionsValue
Trait Implementations§
Source§impl Clone for OptionsValue
impl Clone for OptionsValue
Source§fn clone(&self) -> OptionsValue
fn clone(&self) -> OptionsValue
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 OptionsValue
impl Debug for OptionsValue
Source§impl<'de> Deserialize<'de> for OptionsValue
impl<'de> Deserialize<'de> for OptionsValue
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<&OptionsValue> for OptionsValue
impl From<&OptionsValue> for OptionsValue
Source§fn from(value: &OptionsValue) -> Self
fn from(value: &OptionsValue) -> Self
Converts to this type from the input type.
Source§impl From<OptionsValue> for OptionsValue
impl From<OptionsValue> for OptionsValue
Source§fn from(value: OptionsValue) -> Self
fn from(value: OptionsValue) -> Self
Converts to this type from the input type.
Source§impl Serialize for OptionsValue
impl Serialize for OptionsValue
Source§impl TryFrom<OptionsValue> for OptionsValue
impl TryFrom<OptionsValue> for OptionsValue
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: OptionsValue) -> Result<Self, ConversionError>
fn try_from(value: OptionsValue) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for OptionsValue
impl RefUnwindSafe for OptionsValue
impl Send for OptionsValue
impl Sync for OptionsValue
impl Unpin for OptionsValue
impl UnwindSafe for OptionsValue
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