pub enum StringOrVecString {
String(String),
VecString(Vec<String>),
}Expand description
A string or a vector of strings
Variants§
Trait Implementations§
Source§impl Clone for StringOrVecString
impl Clone for StringOrVecString
Source§fn clone(&self) -> StringOrVecString
fn clone(&self) -> StringOrVecString
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 StringOrVecString
impl Debug for StringOrVecString
Source§impl From<&str> for StringOrVecString
impl From<&str> for StringOrVecString
Source§fn from(value: &str) -> StringOrVecString
fn from(value: &str) -> StringOrVecString
Converts to this type from the input type.
Source§impl From<String> for StringOrVecString
impl From<String> for StringOrVecString
Source§fn from(value: String) -> StringOrVecString
fn from(value: String) -> StringOrVecString
Converts to this type from the input type.
Source§impl PartialEq for StringOrVecString
impl PartialEq for StringOrVecString
Source§impl Serialize for StringOrVecString
impl Serialize for StringOrVecString
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 StringOrVecString
Auto Trait Implementations§
impl Freeze for StringOrVecString
impl RefUnwindSafe for StringOrVecString
impl Send for StringOrVecString
impl Sync for StringOrVecString
impl Unpin for StringOrVecString
impl UnwindSafe for StringOrVecString
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