pub struct UploadPartRequest<B> { /* private fields */ }Expand description
Request to upload one multipart part.
Implementations§
Source§impl<B> UploadPartRequest<B>
impl<B> UploadPartRequest<B>
Sourcepub fn new(
key: ObjectKey,
upload_id: UploadId,
part_number: PartNumber,
body: B,
) -> Self
pub fn new( key: ObjectKey, upload_id: UploadId, part_number: PartNumber, body: B, ) -> Self
Constructs an upload-part request from validated identifiers.
Sourcepub const fn part_number(&self) -> PartNumber
pub const fn part_number(&self) -> PartNumber
Returns the validated part number.
Sourcepub fn with_checksum(self, checksum: Checksum) -> Self
pub fn with_checksum(self, checksum: Checksum) -> Self
Attaches a checksum to the request.
Trait Implementations§
Auto Trait Implementations§
impl<B> Freeze for UploadPartRequest<B>where
B: Freeze,
impl<B> RefUnwindSafe for UploadPartRequest<B>where
B: RefUnwindSafe,
impl<B> Send for UploadPartRequest<B>where
B: Send,
impl<B> Sync for UploadPartRequest<B>where
B: Sync,
impl<B> Unpin for UploadPartRequest<B>where
B: Unpin,
impl<B> UnsafeUnpin for UploadPartRequest<B>where
B: UnsafeUnpin,
impl<B> UnwindSafe for UploadPartRequest<B>where
B: UnwindSafe,
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