pub struct UpdateCustomer {
pub email: Option<String>,
pub first_name: Option<String>,
pub last_name: Option<String>,
pub phone: Option<String>,
pub status: Option<CustomerStatus>,
pub accepts_marketing: Option<bool>,
pub tags: Option<Vec<String>>,
pub metadata: Option<Value>,
}Expand description
Input for updating a customer
Fields§
§email: Option<String>§first_name: Option<String>§last_name: Option<String>§phone: Option<String>§status: Option<CustomerStatus>§accepts_marketing: Option<bool>§metadata: Option<Value>Trait Implementations§
Source§impl Clone for UpdateCustomer
impl Clone for UpdateCustomer
Source§fn clone(&self) -> UpdateCustomer
fn clone(&self) -> UpdateCustomer
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 UpdateCustomer
impl Debug for UpdateCustomer
Source§impl Default for UpdateCustomer
impl Default for UpdateCustomer
Source§fn default() -> UpdateCustomer
fn default() -> UpdateCustomer
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for UpdateCustomer
impl<'de> Deserialize<'de> for UpdateCustomer
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<UpdateCustomer, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<UpdateCustomer, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for UpdateCustomer
impl Serialize for UpdateCustomer
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for UpdateCustomer
impl RefUnwindSafe for UpdateCustomer
impl Send for UpdateCustomer
impl Sync for UpdateCustomer
impl Unpin for UpdateCustomer
impl UnsafeUnpin for UpdateCustomer
impl UnwindSafe for UpdateCustomer
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