pub struct ChatPhoto {
pub big_file_id: String,
pub big_file_unique_id: String,
pub small_file_id: String,
pub small_file_unique_id: String,
}
Expand description
Represents a chat photo.
Fields§
§big_file_id: String
File identifier of a big (640x640) chat photo.
Can be used only for photo download and only for as long as the photo is not changed.
big_file_unique_id: String
Unique file identifier of a big (640x640) chat photo.
It is supposed to be the same over time and for different bots. Can’t be used to download or reuse the file.
small_file_id: String
File identifier of a small (160x160) chat photo.
Can be used only for photo download and only for as long as the photo is not changed.
small_file_unique_id: String
Unique file identifier of a small (160x160) chat photo.
It is supposed to be the same over time and for different bots. Can’t be used to download or reuse the file.
Implementations§
source§impl ChatPhoto
impl ChatPhoto
sourcepub fn new<A, B, C, D>(
big_file_id: A,
big_file_unique_id: B,
small_file_id: C,
small_file_unique_id: D
) -> ChatPhoto
pub fn new<A, B, C, D>( big_file_id: A, big_file_unique_id: B, small_file_id: C, small_file_unique_id: D ) -> ChatPhoto
Creates a new ChatPhoto
.
§Arguments
big_file_id
- File identifier of a big (640x640) chat photo.big_file_unique_id
- Unique file identifier of a big (640x640) chat photo.small_file_id
- File identifier of a small (160x160) chat photo.small_file_unique_id
- Unique file identifier of a small (160x160) chat photo.
Trait Implementations§
source§impl<'de> Deserialize<'de> for ChatPhoto
impl<'de> Deserialize<'de> for ChatPhoto
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<ChatPhoto, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<ChatPhoto, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq for ChatPhoto
impl PartialEq for ChatPhoto
source§impl PartialOrd for ChatPhoto
impl PartialOrd for ChatPhoto
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl Serialize for ChatPhoto
impl Serialize for ChatPhoto
source§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for ChatPhoto
Auto Trait Implementations§
impl Freeze for ChatPhoto
impl RefUnwindSafe for ChatPhoto
impl Send for ChatPhoto
impl Sync for ChatPhoto
impl Unpin for ChatPhoto
impl UnwindSafe for ChatPhoto
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
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more