pub struct PricePreviewBase {
pub customer_id: CustomerID,
pub address_id: AddressID,
pub business_id: BusinessID,
pub currency_code: CurrencyCode,
pub discount_id: DiscountID,
pub address: Address,
pub customer_ip_address: Option<String>,
}
Fields§
§customer_id: CustomerID
Paddle ID of the customer that this preview is for, prefixed with ctm_
.
address_id: AddressID
Paddle ID of the address that this preview is for, prefixed with add_
. Send one of address_id
, customer_ip_address
, or the address
object when previewing.
business_id: BusinessID
Paddle ID of the business that this preview is for, prefixed with biz_
.
currency_code: CurrencyCode
Supported three-letter ISO 4217 currency code.
discount_id: DiscountID
Paddle ID of the discount applied to this preview, prefixed with dsc_
.
address: Address
Address for this preview. Send one of address_id
, customer_ip_address
, or the address
object when previewing.
customer_ip_address: Option<String>
IP address for this transaction preview. Send one of address_id
, customer_ip_address
, or the address
object when previewing.
Trait Implementations§
Source§impl Clone for PricePreviewBase
impl Clone for PricePreviewBase
Source§fn clone(&self) -> PricePreviewBase
fn clone(&self) -> PricePreviewBase
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 PricePreviewBase
impl Debug for PricePreviewBase
Source§impl<'de> Deserialize<'de> for PricePreviewBase
impl<'de> Deserialize<'de> for PricePreviewBase
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
Auto Trait Implementations§
impl Freeze for PricePreviewBase
impl RefUnwindSafe for PricePreviewBase
impl Send for PricePreviewBase
impl Sync for PricePreviewBase
impl Unpin for PricePreviewBase
impl UnwindSafe for PricePreviewBase
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