pub struct GetChatGifts { /* private fields */ }Expand description
Builder for the getChatGifts method.
Returns the gifts owned by a channel chat.
Implementations§
Source§impl GetChatGifts
impl GetChatGifts
Sourcepub fn exclude_unsaved(self, v: bool) -> Self
pub fn exclude_unsaved(self, v: bool) -> Self
Excludes gifts not saved to the chat’s profile page.
Sourcepub fn exclude_saved(self, v: bool) -> Self
pub fn exclude_saved(self, v: bool) -> Self
Excludes gifts saved to the chat’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 GetChatGifts
impl IntoFuture for GetChatGifts
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 = <GetChatGifts as IntoFuture>::Output> + Send>>
type IntoFuture = Pin<Box<dyn Future<Output = <GetChatGifts 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 Freeze for GetChatGifts
impl !RefUnwindSafe for GetChatGifts
impl Send for GetChatGifts
impl Sync for GetChatGifts
impl Unpin for GetChatGifts
impl UnsafeUnpin for GetChatGifts
impl !UnwindSafe for GetChatGifts
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