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
Source§type Value = PreCheckoutQuery
type Value = PreCheckoutQuery
Type to be built
Auto Trait Implementations§
impl Freeze for PreCheckoutQueryBuilder
impl RefUnwindSafe for PreCheckoutQueryBuilder
impl Send for PreCheckoutQueryBuilder
impl Sync for PreCheckoutQueryBuilder
impl Unpin for PreCheckoutQueryBuilder
impl UnwindSafe for PreCheckoutQueryBuilder
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