[][src]Struct tgbot::methods::GetUserProfilePhotos

pub struct GetUserProfilePhotos { /* fields omitted */ }

Get a list of profile pictures for a user

Methods

impl GetUserProfilePhotos[src]

pub fn new(user_id: Integer) -> Self[src]

Creates a new GetUserProfilePhotos with empty optional parameters

Arguments

user_id - Unique identifier of the target user

pub fn offset(self, offset: Integer) -> Self[src]

Sequential number of the first photo to be returned

By default, all photos are returned

pub fn limit(self, limit: Integer) -> Self[src]

Limits the number of photos to be retrieved

Values between 1—100 are accepted Defaults to 100

Trait Implementations

impl Clone for GetUserProfilePhotos[src]

impl Debug for GetUserProfilePhotos[src]

impl Method for GetUserProfilePhotos[src]

type Response = UserProfilePhotos

Type of successful result in API response

impl Serialize for GetUserProfilePhotos[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.