pub struct FileWithCaptionBuilder { /* private fields */ }Expand description
Builder for FileWithCaption.
Implementations§
source§impl FileWithCaptionBuilder
 
impl FileWithCaptionBuilder
sourcepub fn with_file_name<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
 
pub fn with_file_name<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
имя файла
sourcepub fn with_data<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
 
pub fn with_data<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
data URL + base64 data (RFC 2397)
sourcepub fn with_caption<VALUE: Into<Option<String>>>(
    &mut self,
    value: VALUE
) -> &mut Self
 
pub fn with_caption<VALUE: Into<Option<String>>>( &mut self, value: VALUE ) -> &mut Self
(Default: null) - текст под файлом
sourcepub fn build(&self) -> Result<FileWithCaption, FileWithCaptionBuilderError>
 
pub fn build(&self) -> Result<FileWithCaption, FileWithCaptionBuilderError>
Trait Implementations§
source§impl Clone for FileWithCaptionBuilder
 
impl Clone for FileWithCaptionBuilder
source§fn clone(&self) -> FileWithCaptionBuilder
 
fn clone(&self) -> FileWithCaptionBuilder
Returns a copy 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 RefUnwindSafe for FileWithCaptionBuilder
impl Send for FileWithCaptionBuilder
impl Sync for FileWithCaptionBuilder
impl Unpin for FileWithCaptionBuilder
impl UnwindSafe for FileWithCaptionBuilder
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