pub struct UserProfilePhotos {
pub photos: Vec<Vec<PhotoSize>>,
pub total_count: i64,
}
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: i64
Total number of profile pictures the target user has.
Implementations§
Source§impl UserProfilePhotos
impl UserProfilePhotos
Sourcepub fn new<A, B>(photos: A, total_count: i64) -> UserProfilePhotos
pub fn new<A, B>(photos: A, total_count: i64) -> UserProfilePhotos
Creates a new UserProfilePhotos
.
§Arguments
photos
- A list of photos.total_count
- Total number of photos.
Trait Implementations§
Source§impl Clone for UserProfilePhotos
impl Clone for UserProfilePhotos
Source§fn clone(&self) -> UserProfilePhotos
fn clone(&self) -> UserProfilePhotos
Returns a duplicate 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<UserProfilePhotos, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<UserProfilePhotos, <__D as Deserializer<'de>>::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§impl PartialOrd for UserProfilePhotos
impl PartialOrd for UserProfilePhotos
Source§impl Serialize for UserProfilePhotos
impl Serialize for UserProfilePhotos
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 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