Enum google_api_proto::google::ads::googleads::v17::enums::distance_bucket_enum::DistanceBucket
source · #[repr(i32)]pub enum DistanceBucket {
Show 29 variants
Unspecified = 0,
Unknown = 1,
Within700m = 2,
Within1km = 3,
Within5km = 4,
Within10km = 5,
Within15km = 6,
Within20km = 7,
Within25km = 8,
Within30km = 9,
Within35km = 10,
Within40km = 11,
Within45km = 12,
Within50km = 13,
Within55km = 14,
Within60km = 15,
Within65km = 16,
Beyond65km = 17,
Within07miles = 18,
Within1mile = 19,
Within5miles = 20,
Within10miles = 21,
Within15miles = 22,
Within20miles = 23,
Within25miles = 24,
Within30miles = 25,
Within35miles = 26,
Within40miles = 27,
Beyond40miles = 28,
}
Expand description
The distance bucket for a user’s distance from an advertiser’s location extension.
Variants§
Unspecified = 0
Not specified.
Unknown = 1
Used for return value only. Represents value unknown in this version.
Within700m = 2
User was within 700m of the location.
Within1km = 3
User was within 1KM of the location.
Within5km = 4
User was within 5KM of the location.
Within10km = 5
User was within 10KM of the location.
Within15km = 6
User was within 15KM of the location.
Within20km = 7
User was within 20KM of the location.
Within25km = 8
User was within 25KM of the location.
Within30km = 9
User was within 30KM of the location.
Within35km = 10
User was within 35KM of the location.
Within40km = 11
User was within 40KM of the location.
Within45km = 12
User was within 45KM of the location.
Within50km = 13
User was within 50KM of the location.
Within55km = 14
User was within 55KM of the location.
Within60km = 15
User was within 60KM of the location.
Within65km = 16
User was within 65KM of the location.
Beyond65km = 17
User was beyond 65KM of the location.
Within07miles = 18
User was within 0.7 miles of the location.
Within1mile = 19
User was within 1 mile of the location.
Within5miles = 20
User was within 5 miles of the location.
Within10miles = 21
User was within 10 miles of the location.
Within15miles = 22
User was within 15 miles of the location.
Within20miles = 23
User was within 20 miles of the location.
Within25miles = 24
User was within 25 miles of the location.
Within30miles = 25
User was within 30 miles of the location.
Within35miles = 26
User was within 35 miles of the location.
Within40miles = 27
User was within 40 miles of the location.
Beyond40miles = 28
User was beyond 40 miles of the location.
Implementations§
source§impl DistanceBucket
impl DistanceBucket
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 DistanceBucket
impl Clone for DistanceBucket
source§fn clone(&self) -> DistanceBucket
fn clone(&self) -> DistanceBucket
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for DistanceBucket
impl Debug for DistanceBucket
source§impl Default for DistanceBucket
impl Default for DistanceBucket
source§fn default() -> DistanceBucket
fn default() -> DistanceBucket
source§impl From<DistanceBucket> for i32
impl From<DistanceBucket> for i32
source§fn from(value: DistanceBucket) -> i32
fn from(value: DistanceBucket) -> i32
source§impl Hash for DistanceBucket
impl Hash for DistanceBucket
source§impl Ord for DistanceBucket
impl Ord for DistanceBucket
source§fn cmp(&self, other: &DistanceBucket) -> Ordering
fn cmp(&self, other: &DistanceBucket) -> 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 DistanceBucket
impl PartialEq for DistanceBucket
source§fn eq(&self, other: &DistanceBucket) -> bool
fn eq(&self, other: &DistanceBucket) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for DistanceBucket
impl PartialOrd for DistanceBucket
source§fn partial_cmp(&self, other: &DistanceBucket) -> Option<Ordering>
fn partial_cmp(&self, other: &DistanceBucket) -> 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 DistanceBucket
impl TryFrom<i32> for DistanceBucket
§type Error = UnknownEnumValue
type Error = UnknownEnumValue
source§fn try_from(value: i32) -> Result<DistanceBucket, UnknownEnumValue>
fn try_from(value: i32) -> Result<DistanceBucket, UnknownEnumValue>
impl Copy for DistanceBucket
impl Eq for DistanceBucket
impl StructuralPartialEq for DistanceBucket
Auto Trait Implementations§
impl Freeze for DistanceBucket
impl RefUnwindSafe for DistanceBucket
impl Send for DistanceBucket
impl Sync for DistanceBucket
impl Unpin for DistanceBucket
impl UnwindSafe for DistanceBucket
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