Struct b2_client::file::ListFilePartsBuilder
source · [−]pub struct ListFilePartsBuilder<'a> { /* private fields */ }Implementations
sourceimpl<'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
sourceimpl<'a> Default for ListFilePartsBuilder<'a>
impl<'a> Default for ListFilePartsBuilder<'a>
sourcefn default() -> ListFilePartsBuilder<'a>
fn default() -> ListFilePartsBuilder<'a>
Returns the “default value” for a type. Read more
Auto Trait Implementations
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more