pub struct AddressUpdate<'a> { /* private fields */ }Expand description
Request builder for updating an address in Paddle API.
Implementations§
Source§impl<'a> AddressUpdate<'a>
impl<'a> AddressUpdate<'a>
pub fn new( client: &'a Paddle, customer_id: impl Into<CustomerID>, address_id: impl Into<AddressID>, ) -> Self
Sourcepub fn description(
&mut self,
description: impl Into<Nullable<String>>,
) -> &mut Self
pub fn description( &mut self, description: impl Into<Nullable<String>>, ) -> &mut Self
Memorable description for this address.
Sourcepub fn first_line(
&mut self,
first_line: impl Into<Nullable<String>>,
) -> &mut Self
pub fn first_line( &mut self, first_line: impl Into<Nullable<String>>, ) -> &mut Self
First line of the address.
Sourcepub fn second_line(
&mut self,
second_line: impl Into<Nullable<String>>,
) -> &mut Self
pub fn second_line( &mut self, second_line: impl Into<Nullable<String>>, ) -> &mut Self
Second line of the address.
Sourcepub fn postal_code(
&mut self,
postal_code: impl Into<Nullable<String>>,
) -> &mut Self
pub fn postal_code( &mut self, postal_code: impl Into<Nullable<String>>, ) -> &mut Self
Postal code. Required for US addresses
Sourcepub fn country_code(
&mut self,
country_code: impl Into<Nullable<CountryCodeSupported>>,
) -> &mut Self
pub fn country_code( &mut self, country_code: impl Into<Nullable<CountryCodeSupported>>, ) -> &mut Self
Country code.
Sourcepub fn custom_data(
&mut self,
custom_data: impl Into<Nullable<HashMap<String, String>>>,
) -> &mut Self
pub fn custom_data( &mut self, custom_data: impl Into<Nullable<HashMap<String, String>>>, ) -> &mut Self
Custom data to be stored with this address.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for AddressUpdate<'a>
impl<'a> RefUnwindSafe for AddressUpdate<'a>
impl<'a> Send for AddressUpdate<'a>
impl<'a> Sync for AddressUpdate<'a>
impl<'a> Unpin for AddressUpdate<'a>
impl<'a> UnsafeUnpin for AddressUpdate<'a>
impl<'a> UnwindSafe for AddressUpdate<'a>
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