pub struct CustomerUpdate {
pub name: Option<String>,
pub email: String,
pub marketing_consent: bool,
pub status: Status,
pub custom_data: Option<HashMap<String, String>>,
pub locale: String,
pub import_meta: ImportMeta,
}
Expand description
Represents a customer entity when updating customers.
Fields§
§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.
status: Status
Whether this entity can be used in Paddle.
custom_data: Option<HashMap<String, String>>
Your own structured key-value data.
locale: String
Valid IETF BCP 47 short form locale tag.
import_meta: ImportMeta
Import information for this entity. null
if this entity is not imported.
Trait Implementations§
Source§impl Clone for CustomerUpdate
impl Clone for CustomerUpdate
Source§fn clone(&self) -> CustomerUpdate
fn clone(&self) -> CustomerUpdate
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 CustomerUpdate
impl Debug for CustomerUpdate
Source§impl<'de> Deserialize<'de> for CustomerUpdate
impl<'de> Deserialize<'de> for CustomerUpdate
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 CustomerUpdate
impl RefUnwindSafe for CustomerUpdate
impl Send for CustomerUpdate
impl Sync for CustomerUpdate
impl Unpin for CustomerUpdate
impl UnwindSafe for CustomerUpdate
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