pub struct DownloadFileRequestBuilder { /* private fields */ }Expand description
Builder for DownloadFileRequest.
Implementations§
Source§impl DownloadFileRequestBuilder
impl DownloadFileRequestBuilder
Sourcepub fn with_group_chat_id<VALUE: Into<Uuid>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn with_group_chat_id<VALUE: Into<Uuid>>( &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
Идентификатор файла
Sourcepub fn with_is_preview<VALUE: Into<bool>>(&mut self, value: VALUE) -> &mut Self
pub fn with_is_preview<VALUE: Into<bool>>(&mut self, value: VALUE) -> &mut Self
Если true и файл имеет preview, то вернется содержимое preview, иначе оригинал
Sourcepub fn build(
&self,
) -> Result<DownloadFileRequest, DownloadFileRequestBuilderError>
pub fn build( &self, ) -> Result<DownloadFileRequest, DownloadFileRequestBuilderError>
Trait Implementations§
Source§impl Clone for DownloadFileRequestBuilder
impl Clone for DownloadFileRequestBuilder
Source§fn clone(&self) -> DownloadFileRequestBuilder
fn clone(&self) -> DownloadFileRequestBuilder
Returns a duplicate 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 Freeze for DownloadFileRequestBuilder
impl RefUnwindSafe for DownloadFileRequestBuilder
impl Send for DownloadFileRequestBuilder
impl Sync for DownloadFileRequestBuilder
impl Unpin for DownloadFileRequestBuilder
impl UnwindSafe for DownloadFileRequestBuilder
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