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 PhotoSize
fn 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 PhotoSize
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl PartialEq for PhotoSize
[src]
impl PartialEq for PhotoSize
fn eq(&self, other: &PhotoSize) -> bool
[src]
fn eq(&self, other: &PhotoSize) -> bool
This 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) -> bool
This method tests for !=
.
impl Clone for PhotoSize
[src]
impl Clone for PhotoSize
fn clone(&self) -> PhotoSize
[src]
fn clone(&self) -> PhotoSize
Returns 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