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 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 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