pub struct EnumerationValue {
pub synonyms: Option<Vec<String>>,
pub value: String,
}Expand description
Each slot type can have a set of values. Each enumeration value represents a value the slot type can take.
For example, a pizza ordering bot could have a slot type that specifies the type of crust that the pizza should have. The slot type could include the values
-
thick
-
thin
-
stuffed
Fields§
§synonyms: Option<Vec<String>>Additional values related to the slot type value.
value: StringThe value of the slot type.
Trait Implementations§
Source§impl Clone for EnumerationValue
impl Clone for EnumerationValue
Source§fn clone(&self) -> EnumerationValue
fn clone(&self) -> EnumerationValue
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 EnumerationValue
impl Debug for EnumerationValue
Source§impl Default for EnumerationValue
impl Default for EnumerationValue
Source§fn default() -> EnumerationValue
fn default() -> EnumerationValue
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for EnumerationValue
impl<'de> Deserialize<'de> for EnumerationValue
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 PartialEq for EnumerationValue
impl PartialEq for EnumerationValue
Source§impl Serialize for EnumerationValue
impl Serialize for EnumerationValue
impl StructuralPartialEq for EnumerationValue
Auto Trait Implementations§
impl Freeze for EnumerationValue
impl RefUnwindSafe for EnumerationValue
impl Send for EnumerationValue
impl Sync for EnumerationValue
impl Unpin for EnumerationValue
impl UnwindSafe for EnumerationValue
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