Skip to main content

CallGetUserGifts

Struct CallGetUserGifts 

Source
pub struct CallGetUserGifts<'a> { /* private fields */ }

Implementations§

Source§

impl<'a> CallGetUserGifts<'a>

Source

pub fn user_id(self, user_id: i64) -> Self

Unique identifier of the user

Source

pub fn get_user_id(&'a self) -> &'a i64

Source

pub fn exclude_unlimited(self, exclude_unlimited: bool) -> Self

Pass True to exclude gifts that can be purchased an unlimited number of times

Source

pub fn get_exclude_unlimited(&'a self) -> &'a Option<bool>

Source

pub fn exclude_limited_upgradable( self, exclude_limited_upgradable: bool, ) -> Self

Pass True to exclude gifts that can be purchased a limited number of times and can be upgraded to unique

Source

pub fn get_exclude_limited_upgradable(&'a self) -> &'a Option<bool>

Source

pub fn exclude_limited_non_upgradable( self, exclude_limited_non_upgradable: bool, ) -> Self

Pass True to exclude gifts that can be purchased a limited number of times and can’t be upgraded to unique

Source

pub fn get_exclude_limited_non_upgradable(&'a self) -> &'a Option<bool>

Source

pub fn exclude_from_blockchain(self, exclude_from_blockchain: bool) -> Self

Pass True to exclude gifts that were assigned from the TON blockchain and can’t be resold or transferred in Telegram

Source

pub fn get_exclude_from_blockchain(&'a self) -> &'a Option<bool>

Source

pub fn exclude_unique(self, exclude_unique: bool) -> Self

Pass True to exclude unique gifts

Source

pub fn get_exclude_unique(&'a self) -> &'a Option<bool>

Source

pub fn sort_by_price(self, sort_by_price: bool) -> Self

Pass True to sort results by gift price instead of send date. Sorting is applied before pagination.

Source

pub fn get_sort_by_price(&'a self) -> &'a Option<bool>

Source

pub fn offset(self, offset: &'a str) -> Self

Offset of the first entry to return as received from the previous request; use an empty string to get the first chunk of results

Source

pub fn get_offset(&'a self) -> &'a Option<&'a str>

Source

pub fn limit(self, limit: i64) -> Self

The maximum number of gifts to be returned; 1-100. Defaults to 100

Source

pub fn get_limit(&'a self) -> &'a Option<i64>

Source

pub async fn build(self) -> BotResult<OwnedGifts>

Auto Trait Implementations§

§

impl<'a> Freeze for CallGetUserGifts<'a>

§

impl<'a> !RefUnwindSafe for CallGetUserGifts<'a>

§

impl<'a> Send for CallGetUserGifts<'a>

§

impl<'a> Sync for CallGetUserGifts<'a>

§

impl<'a> Unpin for CallGetUserGifts<'a>

§

impl<'a> UnsafeUnpin for CallGetUserGifts<'a>

§

impl<'a> !UnwindSafe for CallGetUserGifts<'a>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> PolicyExt for T
where T: ?Sized,

Source§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow only if self and other return Action::Follow. Read more
Source§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow if either self or other returns Action::Follow. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more