pub struct Address {Show 14 fields
pub id: AddressID,
pub customer_id: CustomerID,
pub description: Option<String>,
pub first_line: Option<String>,
pub second_line: Option<String>,
pub city: Option<String>,
pub postal_code: Option<String>,
pub region: Option<String>,
pub country_code: CountryCodeSupported,
pub custom_data: Option<Value>,
pub status: Status,
pub created_at: DateTime<Utc>,
pub updated_at: DateTime<Utc>,
pub import_meta: Option<ImportMeta>,
}
Expand description
Represents an address entity.
Fields§
§id: AddressID
Unique Paddle ID for this address entity, prefixed with add_
.
customer_id: CustomerID
Unique Paddle ID for this customer entity, prefixed with ctm_
.
description: Option<String>
Memorable description for this address.
first_line: Option<String>
First line of this address.
second_line: Option<String>
Second line of this address.
city: Option<String>
City of this address.
postal_code: Option<String>
ZIP or postal code of this address. Required for some countries.
region: Option<String>
State, county, or region of this address.
country_code: CountryCodeSupported
Supported two-letter ISO 3166-1 alpha-2 country code.
custom_data: Option<Value>
Your own structured key-value data.
status: Status
Whether this entity can be used in Paddle.
created_at: DateTime<Utc>
RFC 3339 datetime string of when this entity was created. Set automatically by Paddle.
updated_at: DateTime<Utc>
RFC 3339 datetime string of when this entity was updated. Set automatically by Paddle.
import_meta: Option<ImportMeta>
Import information for this entity. null
if this entity is not imported.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Address
impl<'de> Deserialize<'de> for Address
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 Address
impl RefUnwindSafe for Address
impl Send for Address
impl Sync for Address
impl Unpin for Address
impl UnwindSafe for Address
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