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