pub enum BlobSource {
Bytes(Vec<u8>),
File(NamedTempFile),
Path(PathBuf),
}Expand description
Backing data for a blob upload.
Variants§
Bytes(Vec<u8>)
Bytes held in memory.
File(NamedTempFile)
A temporary file whose lifetime is owned by the upload.
Path(PathBuf)
A persistent file at the given path.
Auto Trait Implementations§
impl Freeze for BlobSource
impl RefUnwindSafe for BlobSource
impl Send for BlobSource
impl Sync for BlobSource
impl Unpin for BlobSource
impl UnsafeUnpin for BlobSource
impl UnwindSafe for BlobSource
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