pub struct AsyncFileBuilder { /* private fields */ }
Expand description
Builder for AsyncFile
.
Implementations§
Source§impl AsyncFileBuilder
impl AsyncFileBuilder
Sourcepub fn with_async_file_type<VALUE: Into<String>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn with_async_file_type<VALUE: Into<String>>( &mut self, value: VALUE, ) -> &mut Self
тип файла
Sourcepub fn with_file_mime_type<VALUE: Into<MimeType>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn with_file_mime_type<VALUE: Into<MimeType>>( &mut self, value: VALUE, ) -> &mut Self
mimetype файла
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_file_preview<VALUE: Into<String>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn with_file_preview<VALUE: Into<String>>( &mut self, value: VALUE, ) -> &mut Self
(Default: Null) - ссылка на превью
Sourcepub fn with_file_preview_height<VALUE: Into<u32>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn with_file_preview_height<VALUE: Into<u32>>( &mut self, value: VALUE, ) -> &mut Self
(Default: Null) - высота превью в px
Sourcepub fn with_file_preview_width<VALUE: Into<u32>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn with_file_preview_width<VALUE: Into<u32>>( &mut self, value: VALUE, ) -> &mut Self
(Default: Null) - ширина превью в px
Sourcepub fn with_file_size<VALUE: Into<u32>>(&mut self, value: VALUE) -> &mut Self
pub fn with_file_size<VALUE: Into<u32>>(&mut self, value: VALUE) -> &mut Self
размер файла в байтах
Sourcepub fn with_file_hash<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn with_file_hash<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
хэш файла
Sourcepub fn with_file_encryption_algo<VALUE: Into<String>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn with_file_encryption_algo<VALUE: Into<String>>( &mut self, value: VALUE, ) -> &mut Self
“stream”
Sourcepub fn with_chunk_size<VALUE: Into<u32>>(&mut self, value: VALUE) -> &mut Self
pub fn with_chunk_size<VALUE: Into<u32>>(&mut self, value: VALUE) -> &mut Self
размер чанков
Sourcepub fn with_file_id<VALUE: Into<Uuid>>(&mut self, value: VALUE) -> &mut Self
pub fn with_file_id<VALUE: Into<Uuid>>(&mut self, value: VALUE) -> &mut Self
ID файла
Sourcepub fn with_duration<VALUE: Into<u32>>(&mut self, value: VALUE) -> &mut Self
pub fn with_duration<VALUE: Into<u32>>(&mut self, value: VALUE) -> &mut Self
(Default: Null) - длительность видео/аудио
Sourcepub fn with_caption<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn with_caption<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
(Default: Null) - подпись под файлом
Trait Implementations§
Source§impl Clone for AsyncFileBuilder
impl Clone for AsyncFileBuilder
Source§fn clone(&self) -> AsyncFileBuilder
fn clone(&self) -> AsyncFileBuilder
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 AsyncFileBuilder
impl RefUnwindSafe for AsyncFileBuilder
impl Send for AsyncFileBuilder
impl Sync for AsyncFileBuilder
impl Unpin for AsyncFileBuilder
impl UnwindSafe for AsyncFileBuilder
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