pub struct CreateInvoiceLinkBuilder<'a> { /* private fields */ }Expand description
Builder for the [createInvoiceLink] API method.
Implementations§
Source§impl<'a> CreateInvoiceLinkBuilder<'a>
impl<'a> CreateInvoiceLinkBuilder<'a>
Sourcepub fn provider_token(self, val: impl Into<String>) -> Self
pub fn provider_token(self, val: impl Into<String>) -> Self
Sets the provider_token parameter.
Sourcepub fn max_tip_amount(self, val: i64) -> Self
pub fn max_tip_amount(self, val: i64) -> Self
Sets the max_tip_amount parameter.
Sourcepub fn suggested_tip_amounts(self, val: Vec<i64>) -> Self
pub fn suggested_tip_amounts(self, val: Vec<i64>) -> Self
Sets the suggested_tip_amounts parameter.
Sourcepub fn provider_data(self, val: impl Into<String>) -> Self
pub fn provider_data(self, val: impl Into<String>) -> Self
Sets the provider_data parameter.
Sourcepub fn photo_size(self, val: i64) -> Self
pub fn photo_size(self, val: i64) -> Self
Sets the photo_size parameter.
Sourcepub fn photo_width(self, val: i64) -> Self
pub fn photo_width(self, val: i64) -> Self
Sets the photo_width parameter.
Sourcepub fn photo_height(self, val: i64) -> Self
pub fn photo_height(self, val: i64) -> Self
Sets the photo_height parameter.
Sourcepub fn need_phone_number(self, val: bool) -> Self
pub fn need_phone_number(self, val: bool) -> Self
Sets the need_phone_number parameter.
Sourcepub fn need_email(self, val: bool) -> Self
pub fn need_email(self, val: bool) -> Self
Sets the need_email parameter.
Sourcepub fn need_shipping_address(self, val: bool) -> Self
pub fn need_shipping_address(self, val: bool) -> Self
Sets the need_shipping_address parameter.
Sourcepub fn send_phone_number_to_provider(self, val: bool) -> Self
pub fn send_phone_number_to_provider(self, val: bool) -> Self
Sets the send_phone_number_to_provider parameter.
Sourcepub fn send_email_to_provider(self, val: bool) -> Self
pub fn send_email_to_provider(self, val: bool) -> Self
Sets the send_email_to_provider parameter.
Sourcepub fn is_flexible(self, val: bool) -> Self
pub fn is_flexible(self, val: bool) -> Self
Sets the is_flexible parameter.
Sourcepub fn subscription_period(self, val: i64) -> Self
pub fn subscription_period(self, val: i64) -> Self
Sets the subscription_period parameter.
Sourcepub fn business_connection_id(self, val: impl Into<String>) -> Self
pub fn business_connection_id(self, val: impl Into<String>) -> Self
Sets the business_connection_id parameter.
Trait Implementations§
Source§impl<'a> IntoFuture for CreateInvoiceLinkBuilder<'a>
impl<'a> IntoFuture for CreateInvoiceLinkBuilder<'a>
Source§type Output = Result<String, TelegramError>
type Output = Result<String, TelegramError>
The output that the future will produce on completion.
Source§type IntoFuture = Pin<Box<dyn Future<Output = <CreateInvoiceLinkBuilder<'a> as IntoFuture>::Output> + Send + 'a>>
type IntoFuture = Pin<Box<dyn Future<Output = <CreateInvoiceLinkBuilder<'a> as IntoFuture>::Output> + Send + 'a>>
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<'a> Freeze for CreateInvoiceLinkBuilder<'a>
impl<'a> !RefUnwindSafe for CreateInvoiceLinkBuilder<'a>
impl<'a> Send for CreateInvoiceLinkBuilder<'a>
impl<'a> Sync for CreateInvoiceLinkBuilder<'a>
impl<'a> Unpin for CreateInvoiceLinkBuilder<'a>
impl<'a> UnsafeUnpin for CreateInvoiceLinkBuilder<'a>
impl<'a> !UnwindSafe for CreateInvoiceLinkBuilder<'a>
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