Struct tgbot::types::GetUserProfilePhotos
source · pub struct GetUserProfilePhotos { /* private fields */ }
Expand description
Returns a list of profile pictures for a user.
Implementations§
source§impl GetUserProfilePhotos
impl GetUserProfilePhotos
sourcepub fn with_limit(self, limit: Integer) -> Self
pub fn with_limit(self, limit: Integer) -> Self
Sets a new limit.
§Arguments
value
- Limit of the number of photos to be retrieved; 1—100; default - 100.
sourcepub fn with_offset(self, offset: Integer) -> Self
pub fn with_offset(self, offset: Integer) -> Self
Sets a new offset.
§Arguments
value
- Sequential number of the first photo to be returned.
By default, all photos are returned.
Trait Implementations§
source§impl Clone for GetUserProfilePhotos
impl Clone for GetUserProfilePhotos
source§fn clone(&self) -> GetUserProfilePhotos
fn clone(&self) -> GetUserProfilePhotos
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 GetUserProfilePhotos
impl Debug for GetUserProfilePhotos
source§impl Method for GetUserProfilePhotos
impl Method for GetUserProfilePhotos
§type Response = UserProfilePhotos
type Response = UserProfilePhotos
The type representing a successful result in an API response.
source§fn into_payload(self) -> Payload
fn into_payload(self) -> Payload
Converts the method into a payload for an HTTP request.
Auto Trait Implementations§
impl Freeze for GetUserProfilePhotos
impl RefUnwindSafe for GetUserProfilePhotos
impl Send for GetUserProfilePhotos
impl Sync for GetUserProfilePhotos
impl Unpin for GetUserProfilePhotos
impl UnwindSafe for GetUserProfilePhotos
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