pub struct CustomerCreate {
pub id: CustomerID,
pub name: Option<String>,
pub email: String,
pub marketing_consent: bool,
pub custom_data: Option<HashMap<String, String>>,
pub locale: String,
pub import_meta: ImportMeta,
}
Expand description
Represents a customer entity when creating customers.
Fields§
§id: CustomerID
Unique Paddle ID for this customer entity, prefixed with ctm_
.
name: Option<String>
Full name of this customer. Required when creating transactions where collection_mode
is manual
(invoices).
email: String
Email address for this entity.
marketing_consent: bool
Whether this customer opted into marketing from you. false
unless customers check the marketing consent box
when using Paddle Checkout. Set automatically by Paddle.
custom_data: Option<HashMap<String, String>>
Your own structured key-value data.
locale: String
Valid IETF BCP 47 short form locale tag. If omitted, defaults to en
.
import_meta: ImportMeta
Import information for this entity. null
if this entity is not imported.
Trait Implementations§
Source§impl Clone for CustomerCreate
impl Clone for CustomerCreate
Source§fn clone(&self) -> CustomerCreate
fn clone(&self) -> CustomerCreate
Returns a copy 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 CustomerCreate
impl Debug for CustomerCreate
Source§impl<'de> Deserialize<'de> for CustomerCreate
impl<'de> Deserialize<'de> for CustomerCreate
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 CustomerCreate
impl RefUnwindSafe for CustomerCreate
impl Send for CustomerCreate
impl Sync for CustomerCreate
impl Unpin for CustomerCreate
impl UnwindSafe for CustomerCreate
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