pub struct ListFilePartsBuilder<'a> { /* private fields */ }
Implementations§
Source§impl<'a> ListFilePartsBuilder<'a>
impl<'a> ListFilePartsBuilder<'a>
Sourcepub fn file(self, file: &'a File) -> Self
pub fn file(self, file: &'a File) -> Self
A File returned by start_large_file.
Sourcepub fn file_id(self, id: &'a str) -> Self
pub fn file_id(self, id: &'a str) -> Self
The ID of a File returned by start_large_file.
Sourcepub fn start_part_number(self, num: u16) -> Self
pub fn start_part_number(self, num: u16) -> Self
The first part to return in the listing.
Sourcepub fn max_part_count(self, count: u16) -> Self
pub fn max_part_count(self, count: u16) -> Self
The maximum number of parts to return.
The default is 100. The provided count
will be clamped to a value
between 1 and 1,000 inclusive.
If more than 1,000 parts are needed, a new request must be made.
pub fn build(self) -> Result<ListFileParts<'a>, MissingData>
Trait Implementations§
Source§impl<'a> Default for ListFilePartsBuilder<'a>
impl<'a> Default for ListFilePartsBuilder<'a>
Source§fn default() -> ListFilePartsBuilder<'a>
fn default() -> ListFilePartsBuilder<'a>
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl<'a> Freeze for ListFilePartsBuilder<'a>
impl<'a> RefUnwindSafe for ListFilePartsBuilder<'a>
impl<'a> Send for ListFilePartsBuilder<'a>
impl<'a> Sync for ListFilePartsBuilder<'a>
impl<'a> Unpin for ListFilePartsBuilder<'a>
impl<'a> UnwindSafe for ListFilePartsBuilder<'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