pub struct CBillingAddress {
pub first_name: Option<String>,
pub last_name: Option<String>,
pub address1: Option<String>,
pub address2: Option<String>,
pub city: Option<String>,
pub us_state: Option<String>,
pub country_code: Option<String>,
pub postcode: Option<String>,
pub zip_plus4: Option<i32>,
pub phone: Option<String>,
}Fields§
§first_name: Option<String>§last_name: Option<String>§address1: Option<String>§address2: Option<String>§city: Option<String>§us_state: Option<String>§country_code: Option<String>§postcode: Option<String>§zip_plus4: Option<i32>§phone: Option<String>Implementations§
Source§impl CBillingAddress
impl CBillingAddress
Sourcepub fn first_name(&self) -> &str
pub fn first_name(&self) -> &str
Returns the value of first_name, or the default value if first_name is unset.
Sourcepub fn last_name(&self) -> &str
pub fn last_name(&self) -> &str
Returns the value of last_name, or the default value if last_name is unset.
Sourcepub fn address1(&self) -> &str
pub fn address1(&self) -> &str
Returns the value of address1, or the default value if address1 is unset.
Sourcepub fn address2(&self) -> &str
pub fn address2(&self) -> &str
Returns the value of address2, or the default value if address2 is unset.
Sourcepub fn us_state(&self) -> &str
pub fn us_state(&self) -> &str
Returns the value of us_state, or the default value if us_state is unset.
Sourcepub fn country_code(&self) -> &str
pub fn country_code(&self) -> &str
Returns the value of country_code, or the default value if country_code is unset.
Sourcepub fn postcode(&self) -> &str
pub fn postcode(&self) -> &str
Returns the value of postcode, or the default value if postcode is unset.
Trait Implementations§
Source§impl Clone for CBillingAddress
impl Clone for CBillingAddress
Source§fn clone(&self) -> CBillingAddress
fn clone(&self) -> CBillingAddress
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 CBillingAddress
impl Debug for CBillingAddress
Source§impl Default for CBillingAddress
impl Default for CBillingAddress
impl Eq for CBillingAddress
Source§impl Hash for CBillingAddress
impl Hash for CBillingAddress
Source§impl Message for CBillingAddress
impl Message for CBillingAddress
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter.
Source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
Encodes the message to a buffer. Read more
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Encodes the message to a newly allocated buffer.
Source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
Encodes the message with a length-delimiter to a buffer. Read more
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Encodes the message with a length-delimiter to a newly allocated buffer.
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Decodes an instance of the message from a buffer. Read more
Source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Decodes a length-delimited instance of the message from the buffer.
Source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
Decodes an instance of the message from a buffer, and merges it into
self. Read moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
Decodes a length-delimited instance of the message from buffer, and
merges it into
self.Source§impl PartialEq for CBillingAddress
impl PartialEq for CBillingAddress
Source§fn eq(&self, other: &CBillingAddress) -> bool
fn eq(&self, other: &CBillingAddress) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for CBillingAddress
Auto Trait Implementations§
impl Freeze for CBillingAddress
impl RefUnwindSafe for CBillingAddress
impl Send for CBillingAddress
impl Sync for CBillingAddress
impl Unpin for CBillingAddress
impl UnsafeUnpin for CBillingAddress
impl UnwindSafe for CBillingAddress
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