pub enum ChoiceValue {
String(String),
Bool(bool),
}Expand description
Choice values retain their JSON type; true differs from "true".
Variants§
Trait Implementations§
Source§impl Clone for ChoiceValue
impl Clone for ChoiceValue
Source§impl ComposeSchema for ChoiceValue
Available on crate feature protocol-schema only.
impl ComposeSchema for ChoiceValue
Available on crate feature
protocol-schema only.Source§impl Debug for ChoiceValue
impl Debug for ChoiceValue
Source§impl<'de> Deserialize<'de> for ChoiceValue
impl<'de> Deserialize<'de> for ChoiceValue
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
impl Eq for ChoiceValue
Source§impl Hash for ChoiceValue
impl Hash for ChoiceValue
Source§impl PartialEq for ChoiceValue
impl PartialEq for ChoiceValue
Source§impl Serialize for ChoiceValue
impl Serialize for ChoiceValue
impl StructuralPartialEq for ChoiceValue
Auto Trait Implementations§
impl Forget for ChoiceValue
impl Freeze for ChoiceValue
impl Move for ChoiceValue
impl RefUnwindSafe for ChoiceValue
impl Send for ChoiceValue
impl Sync for ChoiceValue
impl Unpin for ChoiceValue
impl UnsafeUnpin for ChoiceValue
impl UnwindSafe for ChoiceValue
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.