pub enum UpOrDown {
Up,
Down,
}Expand description
UpOrDown
JSON schema
{
"type": "string",
"enum": [
"up",
"down"
]
}Variants§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for UpOrDown
impl<'de> Deserialize<'de> for UpOrDown
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 Ord for UpOrDown
impl Ord for UpOrDown
Source§impl PartialOrd for UpOrDown
impl PartialOrd for UpOrDown
Source§impl TryFrom<&String> for UpOrDown
impl TryFrom<&String> for UpOrDown
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§impl TryFrom<&str> for UpOrDown
impl TryFrom<&str> for UpOrDown
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§impl TryFrom<String> for UpOrDown
impl TryFrom<String> for UpOrDown
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
impl Copy for UpOrDown
impl Eq for UpOrDown
impl StructuralPartialEq for UpOrDown
Auto Trait Implementations§
impl Freeze for UpOrDown
impl RefUnwindSafe for UpOrDown
impl Send for UpOrDown
impl Sync for UpOrDown
impl Unpin for UpOrDown
impl UnwindSafe for UpOrDown
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