pub enum StringOrVec {
Single(String),
Multiple(Vec<String>),
}Expand description
A value that can be either a single string or a list of strings.
Used for to, cc, bcc, replyTo fields.
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<'de> Deserialize<'de> for StringOrVec
impl<'de> Deserialize<'de> for StringOrVec
Source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<&str> for StringOrVec
impl From<&str> for StringOrVec
Source§impl From<String> for StringOrVec
impl From<String> for StringOrVec
Source§impl PartialEq for StringOrVec
impl PartialEq for StringOrVec
Source§impl Serialize for StringOrVec
impl Serialize for StringOrVec
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