Struct frankenstein::objects::PreCheckoutQuery
source · [−]pub struct PreCheckoutQuery {
pub id: String,
pub from: User,
pub currency: String,
pub total_amount: u32,
pub invoice_payload: String,
pub shipping_option_id: Option<String>,
pub order_info: Option<OrderInfo>,
}
Fields
id: String
from: User
currency: String
total_amount: u32
invoice_payload: String
shipping_option_id: Option<String>
order_info: Option<OrderInfo>
Implementations
sourceimpl PreCheckoutQuery
impl PreCheckoutQuery
sourcepub fn builder() -> PreCheckoutQueryBuilder<((), (), (), (), (), (), ())>
pub fn builder() -> PreCheckoutQueryBuilder<((), (), (), (), (), (), ())>
Create a builder for building PreCheckoutQuery
.
On the builder, call .id(...)
, .from(...)
, .currency(...)
, .total_amount(...)
, .invoice_payload(...)
, .shipping_option_id(...)
(optional), .order_info(...)
(optional) to set the values of the fields.
Finally, call .build()
to create the instance of PreCheckoutQuery
.
Trait Implementations
sourceimpl Clone for PreCheckoutQuery
impl Clone for PreCheckoutQuery
sourcefn clone(&self) -> PreCheckoutQuery
fn clone(&self) -> PreCheckoutQuery
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for PreCheckoutQuery
impl Debug for PreCheckoutQuery
sourceimpl<'de> Deserialize<'de> for PreCheckoutQuery
impl<'de> Deserialize<'de> for PreCheckoutQuery
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl PartialEq<PreCheckoutQuery> for PreCheckoutQuery
impl PartialEq<PreCheckoutQuery> for PreCheckoutQuery
sourcefn eq(&self, other: &PreCheckoutQuery) -> bool
fn eq(&self, other: &PreCheckoutQuery) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &PreCheckoutQuery) -> bool
fn ne(&self, other: &PreCheckoutQuery) -> bool
This method tests for !=
.
sourceimpl Serialize for PreCheckoutQuery
impl Serialize for PreCheckoutQuery
impl StructuralPartialEq for PreCheckoutQuery
Auto Trait Implementations
impl RefUnwindSafe for PreCheckoutQuery
impl Send for PreCheckoutQuery
impl Sync for PreCheckoutQuery
impl Unpin for PreCheckoutQuery
impl UnwindSafe for PreCheckoutQuery
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more