pub struct CreateFileBuilder<'a> { /* private fields */ }Expand description
Builder for CreateFile.
Implementations§
Source§impl<'a> CreateFileBuilder<'a>
impl<'a> CreateFileBuilder<'a>
Sourcepub fn project_id_or_name<VALUE: Into<Cow<'a, str>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn project_id_or_name<VALUE: Into<Cow<'a, str>>>( &mut self, value: VALUE, ) -> &mut Self
project id or name as it appears in the URL
Sourcepub fn token<VALUE: Into<Cow<'a, str>>>(&mut self, value: VALUE) -> &mut Self
pub fn token<VALUE: Into<Cow<'a, str>>>(&mut self, value: VALUE) -> &mut Self
the token of the uploaded file
Sourcepub fn version_id(&mut self, value: u64) -> &mut Self
pub fn version_id(&mut self, value: u64) -> &mut Self
the version to attach the file to
Sourcepub fn description<VALUE: Into<Cow<'a, str>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn description<VALUE: Into<Cow<'a, str>>>( &mut self, value: VALUE, ) -> &mut Self
a description for the file
Sourcepub fn build(&self) -> Result<CreateFile<'a>, CreateFileBuilderError>
pub fn build(&self) -> Result<CreateFile<'a>, CreateFileBuilderError>
Trait Implementations§
Source§impl<'a> Clone for CreateFileBuilder<'a>
impl<'a> Clone for CreateFileBuilder<'a>
Source§fn clone(&self) -> CreateFileBuilder<'a>
fn clone(&self) -> CreateFileBuilder<'a>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl<'a> Freeze for CreateFileBuilder<'a>
impl<'a> RefUnwindSafe for CreateFileBuilder<'a>
impl<'a> Send for CreateFileBuilder<'a>
impl<'a> Sync for CreateFileBuilder<'a>
impl<'a> Unpin for CreateFileBuilder<'a>
impl<'a> UnwindSafe for CreateFileBuilder<'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