pub struct GetBusinessAccountGifts { /* private fields */ }Expand description
Builder for the getBusinessAccountGifts method.
Returns the gifts received by a managed business account.
Requires the can_view_gifts_and_stars business bot right.
Implementations§
Source§impl GetBusinessAccountGifts
impl GetBusinessAccountGifts
Sourcepub fn exclude_unsaved(self, v: bool) -> Self
pub fn exclude_unsaved(self, v: bool) -> Self
Excludes gifts not saved to the account’s profile page.
Sourcepub fn exclude_saved(self, v: bool) -> Self
pub fn exclude_saved(self, v: bool) -> Self
Excludes gifts saved to the account’s profile page.
Sourcepub fn exclude_unlimited(self, v: bool) -> Self
pub fn exclude_unlimited(self, v: bool) -> Self
Excludes unlimited regular gifts.
Sourcepub fn exclude_limited_upgradable(self, v: bool) -> Self
pub fn exclude_limited_upgradable(self, v: bool) -> Self
Excludes limited gifts that can be upgraded to unique.
Sourcepub fn exclude_limited_non_upgradable(self, v: bool) -> Self
pub fn exclude_limited_non_upgradable(self, v: bool) -> Self
Excludes limited gifts that cannot be upgraded to unique.
Sourcepub fn exclude_unique(self, v: bool) -> Self
pub fn exclude_unique(self, v: bool) -> Self
Excludes unique gifts.
Sourcepub fn exclude_from_blockchain(self, v: bool) -> Self
pub fn exclude_from_blockchain(self, v: bool) -> Self
Excludes gifts assigned from the TON blockchain.
Sourcepub fn sort_by_price(self, v: bool) -> Self
pub fn sort_by_price(self, v: bool) -> Self
Sorts results by price instead of send date.
Trait Implementations§
Source§impl IntoFuture for GetBusinessAccountGifts
impl IntoFuture for GetBusinessAccountGifts
Source§type Output = Result<OwnedGifts, Error>
type Output = Result<OwnedGifts, Error>
The output that the future will produce on completion.
Source§type IntoFuture = Pin<Box<dyn Future<Output = <GetBusinessAccountGifts as IntoFuture>::Output> + Send>>
type IntoFuture = Pin<Box<dyn Future<Output = <GetBusinessAccountGifts as IntoFuture>::Output> + Send>>
Which kind of future are we turning this into?
Source§fn into_future(self) -> Self::IntoFuture
fn into_future(self) -> Self::IntoFuture
Creates a future from a value. Read more
Auto Trait Implementations§
impl !RefUnwindSafe for GetBusinessAccountGifts
impl !UnwindSafe for GetBusinessAccountGifts
impl Freeze for GetBusinessAccountGifts
impl Send for GetBusinessAccountGifts
impl Sync for GetBusinessAccountGifts
impl Unpin for GetBusinessAccountGifts
impl UnsafeUnpin for GetBusinessAccountGifts
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