Struct botx_api::api::v3::files::download_file::models::DownloadFileRequestBuilder
source · 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 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 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