Struct redmine_api::api::uploads::UploadFileBuilder   
source · [−]pub struct UploadFileBuilder<'a> { /* private fields */ }Expand description
Builder for UploadFile.
Implementations
sourceimpl<'a> UploadFileBuilder<'a>
 
impl<'a> UploadFileBuilder<'a>
sourcepub fn file<VALUE: Into<PathBuf>>(&mut self, value: VALUE) -> &mut Self
 
pub fn file<VALUE: Into<PathBuf>>(&mut self, value: VALUE) -> &mut Self
the actual file to send to Redmine
sourcepub fn filename<VALUE: Into<Cow<'a, str>>>(&mut self, value: VALUE) -> &mut Self
 
pub fn filename<VALUE: Into<Cow<'a, str>>>(&mut self, value: VALUE) -> &mut Self
the filename to send to Redmine, if not set it will be taken from the file
sourcepub fn build(&self) -> Result<UploadFile<'a>, UploadFileBuilderError>
 
pub fn build(&self) -> Result<UploadFile<'a>, UploadFileBuilderError>
Trait Implementations
sourceimpl<'a> Clone for UploadFileBuilder<'a>
 
impl<'a> Clone for UploadFileBuilder<'a>
sourcefn clone(&self) -> UploadFileBuilder<'a>
 
fn clone(&self) -> UploadFileBuilder<'a>
Returns a copy of the value. Read more
1.0.0 · sourceconst fn clone_from(&mut self, source: &Self)
 
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from 
source. Read moreAuto Trait Implementations
impl<'a> RefUnwindSafe for UploadFileBuilder<'a>
impl<'a> Send for UploadFileBuilder<'a>
impl<'a> Sync for UploadFileBuilder<'a>
impl<'a> Unpin for UploadFileBuilder<'a>
impl<'a> UnwindSafe for UploadFileBuilder<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
    T: ?Sized,
 
impl<T> BorrowMut<T> for Twhere
    T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
 
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more