Struct telegram_bot::types::PhotoSize [−][src]
pub struct PhotoSize {
pub file_id: String,
pub width: Integer,
pub height: Integer,
pub file_size: Option<Integer>,
}Telegram type "PhotoSize" (directly mapped)
Fields
file_id: String
width: Integer
height: Integer
file_size: Option<Integer>
Trait Implementations
impl Decodable for PhotoSize[src]
impl Decodable for PhotoSizefn decode<__D: Decoder>(d: &mut __D) -> Result<PhotoSize, __D::Error>[src]
fn decode<__D: Decoder>(d: &mut __D) -> Result<PhotoSize, __D::Error>Deserialize a value using a Decoder.
impl Debug for PhotoSize[src]
impl Debug for PhotoSizefn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl PartialEq for PhotoSize[src]
impl PartialEq for PhotoSizefn eq(&self, other: &PhotoSize) -> bool[src]
fn eq(&self, other: &PhotoSize) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &PhotoSize) -> bool[src]
fn ne(&self, other: &PhotoSize) -> boolThis method tests for !=.
impl Clone for PhotoSize[src]
impl Clone for PhotoSizefn clone(&self) -> PhotoSize[src]
fn clone(&self) -> PhotoSizeReturns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)1.0.0
[src]Performs copy-assignment from source. Read more
impl Encodable for PhotoSize[src]
impl Encodable for PhotoSize