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 duplicate of the value. Read more
1.0.0 · Source§const 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 Freeze for FileWithCaptionBuilder
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