Enum google_api_proto::google::ads::googleads::v16::enums::price_extension_type_enum::PriceExtensionType
source · #[repr(i32)]pub enum PriceExtensionType {
Unspecified = 0,
Unknown = 1,
Brands = 2,
Events = 3,
Locations = 4,
Neighborhoods = 5,
ProductCategories = 6,
ProductTiers = 7,
Services = 8,
ServiceCategories = 9,
ServiceTiers = 10,
}
Expand description
Price extension type.
Variants§
Unspecified = 0
Not specified.
Unknown = 1
Used for return value only. Represents value unknown in this version.
Brands = 2
The type for showing a list of brands.
Events = 3
The type for showing a list of events.
Locations = 4
The type for showing locations relevant to your business.
Neighborhoods = 5
The type for showing sub-regions or districts within a city or region.
ProductCategories = 6
The type for showing a collection of product categories.
ProductTiers = 7
The type for showing a collection of related product tiers.
Services = 8
The type for showing a collection of services offered by your business.
ServiceCategories = 9
The type for showing a collection of service categories.
ServiceTiers = 10
The type for showing a collection of related service tiers.
Implementations§
source§impl PriceExtensionType
impl PriceExtensionType
sourcepub fn as_str_name(&self) -> &'static str
pub fn as_str_name(&self) -> &'static str
String value of the enum field names used in the ProtoBuf definition.
The values are not transformed in any way and thus are considered stable (if the ProtoBuf definition does not change) and safe for programmatic use.
sourcepub fn from_str_name(value: &str) -> Option<Self>
pub fn from_str_name(value: &str) -> Option<Self>
Creates an enum from field names used in the ProtoBuf definition.
Trait Implementations§
source§impl Clone for PriceExtensionType
impl Clone for PriceExtensionType
source§fn clone(&self) -> PriceExtensionType
fn clone(&self) -> PriceExtensionType
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for PriceExtensionType
impl Debug for PriceExtensionType
source§impl Default for PriceExtensionType
impl Default for PriceExtensionType
source§fn default() -> PriceExtensionType
fn default() -> PriceExtensionType
source§impl From<PriceExtensionType> for i32
impl From<PriceExtensionType> for i32
source§fn from(value: PriceExtensionType) -> i32
fn from(value: PriceExtensionType) -> i32
source§impl Hash for PriceExtensionType
impl Hash for PriceExtensionType
source§impl Ord for PriceExtensionType
impl Ord for PriceExtensionType
source§fn cmp(&self, other: &PriceExtensionType) -> Ordering
fn cmp(&self, other: &PriceExtensionType) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
source§impl PartialEq for PriceExtensionType
impl PartialEq for PriceExtensionType
source§fn eq(&self, other: &PriceExtensionType) -> bool
fn eq(&self, other: &PriceExtensionType) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for PriceExtensionType
impl PartialOrd for PriceExtensionType
source§fn partial_cmp(&self, other: &PriceExtensionType) -> Option<Ordering>
fn partial_cmp(&self, other: &PriceExtensionType) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read moresource§impl TryFrom<i32> for PriceExtensionType
impl TryFrom<i32> for PriceExtensionType
§type Error = DecodeError
type Error = DecodeError
source§fn try_from(value: i32) -> Result<PriceExtensionType, DecodeError>
fn try_from(value: i32) -> Result<PriceExtensionType, DecodeError>
impl Copy for PriceExtensionType
impl Eq for PriceExtensionType
impl StructuralPartialEq for PriceExtensionType
Auto Trait Implementations§
impl Freeze for PriceExtensionType
impl RefUnwindSafe for PriceExtensionType
impl Send for PriceExtensionType
impl Sync for PriceExtensionType
impl Unpin for PriceExtensionType
impl UnwindSafe for PriceExtensionType
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
§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request