Struct telegram_bot::types::PhotoSize
[−]
[src]
pub struct PhotoSize { pub file_id: String, pub width: i64, pub height: i64, pub file_size: Option<i64>, }
This object represents one size of a photo or a file / sticker thumbnail.
Fields
file_id: String
Unique identifier for this file.
width: i64
Photo width.
height: i64
Photo height.
file_size: Option<i64>
File size.
Trait Implementations
impl Clone for PhotoSize
[src]
fn clone(&self) -> PhotoSize
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl PartialOrd<PhotoSize> for PhotoSize
[src]
fn partial_cmp(&self, __arg_0: &PhotoSize) -> Option<Ordering>
[src]
fn lt(&self, __arg_0: &PhotoSize) -> bool
[src]
fn le(&self, __arg_0: &PhotoSize) -> bool
[src]
fn gt(&self, __arg_0: &PhotoSize) -> bool
[src]
fn ge(&self, __arg_0: &PhotoSize) -> bool
[src]
impl PartialEq<PhotoSize> for PhotoSize
[src]
impl Debug for PhotoSize
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result<(), Error>
[src]
Formats the value using the given formatter.
impl<'de> Deserialize<'de> for PhotoSize
[src]
fn deserialize<__D>(
__deserializer: __D
) -> Result<PhotoSize, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
[src]
__deserializer: __D
) -> Result<PhotoSize, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,