Skip to main content

ronami_core/payloads/
get_user_profile_photos.rs

1//! Generated by `codegen_payloads`, do not edit by hand.
2
3use serde::Serialize;
4
5use crate::types::UserId;
6use crate::types::UserProfilePhotos;
7
8impl_payload! {
9    /// Use this method to get a list of profile pictures for a user. Returns a [`UserProfilePhotos`] object.
10    ///
11    /// [`UserProfilePhotos`]: crate::types::UserProfilePhotos
12    #[derive(Debug, PartialEq, Eq, Hash, Clone, Serialize)]
13    pub GetUserProfilePhotos (GetUserProfilePhotosSetters) => UserProfilePhotos {
14        required {
15            /// Unique identifier of the target user
16            pub user_id: UserId,
17        }
18        optional {
19            /// Sequential number of the first photo to be returned. By default, all photos are returned.
20            pub offset: u32,
21            /// Limits the number of photos to be retrieved. Values between 1-100 are accepted. Defaults to 100.
22            pub limit: u8,
23        }
24    }
25}