#[non_exhaustive]pub struct Address {
pub contact_name: Option<Box<str>>,
pub line: Box<str>,
pub city: Box<str>,
pub country: Box<str>,
pub zip_code: Option<Box<str>>,
}Expand description
Somewhere to bill, ship or register a payer at.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.contact_name: Option<Box<str>>Who the address is for, where the provider asks separately.
iyzico requires it on a billing address. None is a caller who did not
say, and an adapter that needs one falls back to the buyer’s own name
rather than sending nothing.
line: Box<str>The street address, as one line.
city: Box<str>City.
country: Box<str>Country.
zip_code: Option<Box<str>>Postcode, where there is one.
Implementations§
Trait Implementations§
impl Eq for Address
impl StructuralPartialEq for Address
Auto Trait Implementations§
impl Freeze for Address
impl RefUnwindSafe for Address
impl Send for Address
impl Sync for Address
impl Unpin for Address
impl UnsafeUnpin for Address
impl UnwindSafe for Address
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