pub enum StringOrVec {
String(String),
Vec(Vec<Value>),
}Variants§
Trait Implementations§
Source§impl Clone for StringOrVec
impl Clone for StringOrVec
Source§fn clone(&self) -> StringOrVec
fn clone(&self) -> StringOrVec
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 StringOrVec
impl Debug for StringOrVec
Source§impl From<&str> for StringOrVec
impl From<&str> for StringOrVec
Source§fn from(value: &str) -> StringOrVec
fn from(value: &str) -> StringOrVec
Converts to this type from the input type.
Source§impl From<String> for StringOrVec
impl From<String> for StringOrVec
Source§fn from(value: String) -> StringOrVec
fn from(value: String) -> StringOrVec
Converts to this type from the input type.
Source§impl PartialEq for StringOrVec
impl PartialEq for StringOrVec
Source§impl Serialize for StringOrVec
impl Serialize for StringOrVec
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 StringOrVec
Auto Trait Implementations§
impl Freeze for StringOrVec
impl RefUnwindSafe for StringOrVec
impl Send for StringOrVec
impl Sync for StringOrVec
impl Unpin for StringOrVec
impl UnsafeUnpin for StringOrVec
impl UnwindSafe for StringOrVec
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