Struct tgbot::types::UserProfilePhotos
source · pub struct UserProfilePhotos {
pub photos: Vec<Vec<PhotoSize>>,
pub total_count: Integer,
}
Expand description
Represents a list of profile pictures of a user.
Fields§
§photos: Vec<Vec<PhotoSize>>
Requested profile pictures (in up to 4 sizes each).
total_count: Integer
Total number of profile pictures the target user has.
Implementations§
Trait Implementations§
source§impl Clone for UserProfilePhotos
impl Clone for UserProfilePhotos
source§fn clone(&self) -> UserProfilePhotos
fn clone(&self) -> UserProfilePhotos
Returns a copy 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 UserProfilePhotos
impl Debug for UserProfilePhotos
source§impl<'de> Deserialize<'de> for UserProfilePhotos
impl<'de> Deserialize<'de> for UserProfilePhotos
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
source§impl PartialEq for UserProfilePhotos
impl PartialEq for UserProfilePhotos
source§fn eq(&self, other: &UserProfilePhotos) -> bool
fn eq(&self, other: &UserProfilePhotos) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for UserProfilePhotos
impl PartialOrd for UserProfilePhotos
source§fn partial_cmp(&self, other: &UserProfilePhotos) -> Option<Ordering>
fn partial_cmp(&self, other: &UserProfilePhotos) -> Option<Ordering>
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 UserProfilePhotos
impl Serialize for UserProfilePhotos
impl StructuralPartialEq for UserProfilePhotos
Auto Trait Implementations§
impl Freeze for UserProfilePhotos
impl RefUnwindSafe for UserProfilePhotos
impl Send for UserProfilePhotos
impl Sync for UserProfilePhotos
impl Unpin for UserProfilePhotos
impl UnwindSafe for UserProfilePhotos
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