pub struct PostalCode {
pub code: Option<String>,
pub kind: Option<String>,
pub country_dart_id: Option<String>,
pub id: Option<String>,
pub country_code: Option<String>,
}
Expand description
Contains information about a postal code that can be targeted by ads.
§Activities
This type is used in activities, which are methods you may call on this type or where this type is involved in. The list links the activity name, along with information about where it is used (one of request and response).
- get postal codes (response)
- list postal codes (none)
Fields§
§code: Option<String>
Postal code. This is equivalent to the id field.
kind: Option<String>
Identifies what kind of resource this is. Value: the fixed string “dfareporting#postalCode”.
country_dart_id: Option<String>
DART ID of the country to which this postal code belongs.
id: Option<String>
ID of this postal code.
country_code: Option<String>
Country code of the country to which this postal code belongs.
Trait Implementations§
Source§impl Clone for PostalCode
impl Clone for PostalCode
Source§fn clone(&self) -> PostalCode
fn clone(&self) -> PostalCode
Returns a duplicate of the value. Read more
1.0.0 · 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 PostalCode
impl Debug for PostalCode
Source§impl Default for PostalCode
impl Default for PostalCode
Source§fn default() -> PostalCode
fn default() -> PostalCode
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PostalCode
impl<'de> Deserialize<'de> for PostalCode
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for PostalCode
impl Serialize for PostalCode
impl Resource for PostalCode
impl ResponseResult for PostalCode
Auto Trait Implementations§
impl Freeze for PostalCode
impl RefUnwindSafe for PostalCode
impl Send for PostalCode
impl Sync for PostalCode
impl Unpin for PostalCode
impl UnwindSafe for PostalCode
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more