#[non_exhaustive]pub struct RequestFilesGetInfo {
pub file_id: FileId,
}Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.file_id: FileIdImplementations§
Source§impl RequestFilesGetInfo
impl RequestFilesGetInfo
pub fn _get_chat_id(&self) -> Option<&ChatId>
Source§impl RequestFilesGetInfo
impl RequestFilesGetInfo
pub fn _get_multipart(&self) -> &MultipartName
Trait Implementations§
Source§impl BotRequest for RequestFilesGetInfo
impl BotRequest for RequestFilesGetInfo
const METHOD: &'static str = "files/getInfo"
type Args = FileId
type RequestType = RequestFilesGetInfo
type ResponseType = ResponseFilesGetInfo
fn new(file_id: FileId) -> Self
fn get_chat_id(&self) -> Option<&ChatId>
fn get_multipart(&self) -> &MultipartName
const HTTP_METHOD: HTTPMethod = HTTPMethod::GET
Source§impl Clone for RequestFilesGetInfo
impl Clone for RequestFilesGetInfo
Source§fn clone(&self) -> RequestFilesGetInfo
fn clone(&self) -> RequestFilesGetInfo
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 moreSource§impl Debug for RequestFilesGetInfo
impl Debug for RequestFilesGetInfo
Source§impl Default for RequestFilesGetInfo
impl Default for RequestFilesGetInfo
Source§fn default() -> RequestFilesGetInfo
fn default() -> RequestFilesGetInfo
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for RequestFilesGetInfo
impl<'de> Deserialize<'de> for RequestFilesGetInfo
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for RequestFilesGetInfo
impl RefUnwindSafe for RequestFilesGetInfo
impl Send for RequestFilesGetInfo
impl Sync for RequestFilesGetInfo
impl Unpin for RequestFilesGetInfo
impl UnwindSafe for RequestFilesGetInfo
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