pub struct UploadFilePartBuilder<'a> { /* private fields */ }
Expand description
A builder for an UploadFilePart request.
Implementations§
Source§impl<'a> UploadFilePartBuilder<'a>
impl<'a> UploadFilePartBuilder<'a>
Sourcepub fn part_number(self, num: u16) -> Self
pub fn part_number(self, num: u16) -> Self
Set the number of this part.
Part numbers increment from 1 to 10,000 inclusive and will be clamped to that range if necessary.
Sourcepub fn part_sha1_checksum(self, sha1: &'a str) -> Self
pub fn part_sha1_checksum(self, sha1: &'a str) -> Self
The SHA1 checkum of this part of the file.
If not provided, the file part will not be immediately verified. The SHA1 checksums are required to finish the file upload, so they will be verified either when you upload the part or at the end of the process.
Sourcepub fn server_side_encryption(self, encryption: ServerSideEncryption) -> Self
pub fn server_side_encryption(self, encryption: ServerSideEncryption) -> Self
Set the encryption settings for the source file.
This must match the settings passed to start_large_file.
Sourcepub fn build(self) -> UploadFilePart<'a>
pub fn build(self) -> UploadFilePart<'a>
Create an UploadFilePart request to pass to upload_file_part.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for UploadFilePartBuilder<'a>
impl<'a> RefUnwindSafe for UploadFilePartBuilder<'a>
impl<'a> Send for UploadFilePartBuilder<'a>
impl<'a> Sync for UploadFilePartBuilder<'a>
impl<'a> Unpin for UploadFilePartBuilder<'a>
impl<'a> UnwindSafe for UploadFilePartBuilder<'a>
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