ronami_core/payloads/get_user_gifts.rs
1//! Generated by `codegen_payloads`, do not edit by hand.
2
3use serde::Serialize;
4
5use crate::types::OwnedGifts;
6use crate::types::UserId;
7
8impl_payload! {
9 /// Returns the gifts owned and hosted by a user. Returns [`OwnedGifts`] on success.
10 ///
11 /// [`OwnedGifts`]: crate::types::OwnedGifts
12 #[derive(Debug, PartialEq, Eq, Hash, Clone, Serialize)]
13 pub GetUserGifts (GetUserGiftsSetters) => OwnedGifts {
14 required {
15 /// Unique identifier of the user
16 pub user_id: UserId,
17 }
18 optional {
19 /// Pass _true_ to exclude gifts that can be purchased an unlimited number of times
20 pub exclude_unlimited: bool,
21 /// Pass _true_ to exclude gifts that can be purchased a limited number of times and can be upgraded to unique
22 pub exclude_limited_upgradable: bool,
23 /// Pass _true_ to exclude gifts that can be purchased a limited number of times and can't be upgraded to unique
24 pub exclude_limited_non_upgradable: bool,
25 /// Pass _true_ to exclude gifts that were assigned from the TON blockchain
26 pub exclude_from_blockchain: bool,
27 /// Pass _true_ to exclude unique gifts
28 pub exclude_unique: bool,
29 /// Pass _true_ to sort results by gift price instead of send date
30 pub sort_by_price: bool,
31 /// Offset of the first entry to return as received from the previous request
32 pub offset: String [into],
33 /// The maximum number of gifts to be returned; 1-100. Defaults to 100
34 pub limit: u8,
35 }
36 }
37}