Skip to main content

ronami_core/payloads/
get_user_profile_audios.rs

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