pub enum BodySource {
Bytes(Bytes),
File(PathBuf),
FileCopy(PathBuf),
}Variants§
Bytes(Bytes)
File(PathBuf)
Existing disk path that should be moved into the destination via rename (upload-tmp → final) and consumed.
FileCopy(PathBuf)
Existing disk path that should be copied into the destination and left in place. Used by replication so the source object stays available while the replica is produced.
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for BodySource
impl RefUnwindSafe for BodySource
impl Send for BodySource
impl Sync for BodySource
impl Unpin for BodySource
impl UnsafeUnpin for BodySource
impl UnwindSafe for BodySource
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