pub struct OrderBilling {
pub address: Option<String>,
pub city: Option<String>,
pub country_code: Option<String>,
pub country: Option<String>,
pub phone: Option<String>,
pub post_code: Option<String>,
pub payment_method: Option<String>,
pub region: Option<String>,
}Expand description
OrderBilling : Billing details of an order.
Fields§
§address: Option<String>Full billing address.
city: Option<String>Exact city of the address.
country_code: Option<String>Billing country 2-letter ISO code.
country: Option<String>Billing country name.
phone: Option<String>Billing phone number.
post_code: Option<String>Postcode for delivery and billing.
payment_method: Option<String>How the visitor will pay for the item(s), e.g. paypal, check, etc.
region: Option<String>Exact region (state/province) for delivery and billing.
Implementations§
Source§impl OrderBilling
impl OrderBilling
Sourcepub fn new() -> OrderBilling
pub fn new() -> OrderBilling
Billing details of an order.
Trait Implementations§
Source§impl Clone for OrderBilling
impl Clone for OrderBilling
Source§fn clone(&self) -> OrderBilling
fn clone(&self) -> OrderBilling
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for OrderBilling
impl Debug for OrderBilling
Source§impl Default for OrderBilling
impl Default for OrderBilling
Source§fn default() -> OrderBilling
fn default() -> OrderBilling
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for OrderBilling
impl<'de> Deserialize<'de> for OrderBilling
Source§fn 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
Source§impl PartialEq for OrderBilling
impl PartialEq for OrderBilling
Source§impl Serialize for OrderBilling
impl Serialize for OrderBilling
impl StructuralPartialEq for OrderBilling
Auto Trait Implementations§
impl Freeze for OrderBilling
impl RefUnwindSafe for OrderBilling
impl Send for OrderBilling
impl Sync for OrderBilling
impl Unpin for OrderBilling
impl UnwindSafe for OrderBilling
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