#[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§impl PartialOrd for DistanceBucket
impl PartialOrd for DistanceBucket
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§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.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<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.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§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