pub enum BoolOrString {
Bool(bool),
String(String),
}Expand description
A boolean or a string
Variants§
Trait Implementations§
Source§impl Clone for BoolOrString
impl Clone for BoolOrString
Source§fn clone(&self) -> BoolOrString
fn clone(&self) -> BoolOrString
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 BoolOrString
impl Debug for BoolOrString
Source§impl From<&str> for BoolOrString
impl From<&str> for BoolOrString
Source§fn from(value: &str) -> BoolOrString
fn from(value: &str) -> BoolOrString
Converts to this type from the input type.
Source§impl From<String> for BoolOrString
impl From<String> for BoolOrString
Source§fn from(value: String) -> BoolOrString
fn from(value: String) -> BoolOrString
Converts to this type from the input type.
Source§impl From<bool> for BoolOrString
impl From<bool> for BoolOrString
Source§fn from(value: bool) -> BoolOrString
fn from(value: bool) -> BoolOrString
Converts to this type from the input type.
Source§impl PartialEq for BoolOrString
impl PartialEq for BoolOrString
Source§impl Serialize for BoolOrString
impl Serialize for BoolOrString
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for BoolOrString
Auto Trait Implementations§
impl Freeze for BoolOrString
impl RefUnwindSafe for BoolOrString
impl Send for BoolOrString
impl Sync for BoolOrString
impl Unpin for BoolOrString
impl UnsafeUnpin for BoolOrString
impl UnwindSafe for BoolOrString
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