pub struct FileSource {
pub path: PathBuf,
pub name: String,
pub field_index: Option<usize>,
}Expand description
Source path to a file.
Fields§
§path: PathBufPath to the source file.
name: StringName of the file.
field_index: Option<usize>Field index for attachments.
Trait Implementations§
Source§impl Clone for FileSource
impl Clone for FileSource
Source§fn clone(&self) -> FileSource
fn clone(&self) -> FileSource
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 moreAuto Trait Implementations§
impl Freeze for FileSource
impl RefUnwindSafe for FileSource
impl Send for FileSource
impl Sync for FileSource
impl Unpin for FileSource
impl UnwindSafe for FileSource
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