pub enum StringOrStringArray {
String(String),
StringArray(Vec<String>),
}
Expand description
Used to represent values that can either be a string or a string array.
Variants§
Trait Implementations§
source§impl Clone for StringOrStringArray
impl Clone for StringOrStringArray
source§fn clone(&self) -> StringOrStringArray
fn clone(&self) -> StringOrStringArray
Returns a copy 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 StringOrStringArray
impl Debug for StringOrStringArray
source§impl<'de> Deserialize<'de> for StringOrStringArray
impl<'de> Deserialize<'de> for StringOrStringArray
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 PartialEq for StringOrStringArray
impl PartialEq for StringOrStringArray
source§fn eq(&self, other: &StringOrStringArray) -> bool
fn eq(&self, other: &StringOrStringArray) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for StringOrStringArray
impl Serialize for StringOrStringArray
impl Eq for StringOrStringArray
impl StructuralPartialEq for StringOrStringArray
Auto Trait Implementations§
impl Freeze for StringOrStringArray
impl RefUnwindSafe for StringOrStringArray
impl Send for StringOrStringArray
impl Sync for StringOrStringArray
impl Unpin for StringOrStringArray
impl UnwindSafe for StringOrStringArray
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