pub enum FileSource {
Bytes(Bytes),
Base64(String),
Path(PathBuf),
StdFile(File, Option<String>),
}
Expand description
Different sources for creating files
Variants§
Bytes(Bytes)
Raw bytes
Base64(String)
Base64 encoded string
Path(PathBuf)
File system path
StdFile(File, Option<String>)
Standard library File with optional name
Auto 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