pub enum ContentOrPath {
Content(Vec<u8>),
Path(String),
}Expand description
Content or path of the Attachment.
Variants§
Content(Vec<u8>)
Content of an attached file.
Path(String)
Path where the attachment file is hosted.
Trait Implementations§
Source§impl Clone for ContentOrPath
impl Clone for ContentOrPath
Source§fn clone(&self) -> ContentOrPath
fn clone(&self) -> ContentOrPath
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ContentOrPath
impl Debug for ContentOrPath
Auto Trait Implementations§
impl Freeze for ContentOrPath
impl RefUnwindSafe for ContentOrPath
impl Send for ContentOrPath
impl Sync for ContentOrPath
impl Unpin for ContentOrPath
impl UnsafeUnpin for ContentOrPath
impl UnwindSafe for ContentOrPath
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