Struct telegram_bot2::models::PreCheckoutQueryBuilder
source · pub struct PreCheckoutQueryBuilder { /* private fields */ }Expand description
Builder for the PreCheckoutQuery structure
Implementations§
source§impl PreCheckoutQueryBuilder
impl PreCheckoutQueryBuilder
sourcepub fn new(
id: String,
from: User,
currency: String,
total_amount: i64,
invoice_payload: String
) -> Self
pub fn new( id: String, from: User, currency: String, total_amount: i64, invoice_payload: String ) -> Self
Instantiate the builder with the fields id, from, currency, total_amount, invoice_payload, shipping_option_id, order_info
sourcepub fn shipping_option_id(self, val: String) -> Self
pub fn shipping_option_id(self, val: String) -> Self
Set the field shipping_option_id to the given value
sourcepub fn order_info(self, val: OrderInfo) -> Self
pub fn order_info(self, val: OrderInfo) -> Self
Set the field order_info to the given value
Trait Implementations§
source§impl Builder for PreCheckoutQueryBuilder
impl Builder for PreCheckoutQueryBuilder
§type Value = PreCheckoutQuery
type Value = PreCheckoutQuery
Type to be built