Struct google_api_proto::google::ads::googleads::v16::resources::DistanceView
source · pub struct DistanceView {
pub resource_name: String,
pub distance_bucket: i32,
pub metric_system: Option<bool>,
}
Expand description
A distance view with metrics aggregated by the user’s distance from an advertiser’s location extensions. Each DistanceBucket includes all impressions that fall within its distance and a single impression will contribute to the metrics for all DistanceBuckets that include the user’s distance.
Fields§
§resource_name: String
Output only. The resource name of the distance view. Distance view resource names have the form:
customers/{customer_id}/distanceViews/1~{distance_bucket}
distance_bucket: i32
Output only. Grouping of user distance from location extensions.
metric_system: Option<bool>
Output only. True if the DistanceBucket is using the metric system, false otherwise.
Implementations§
source§impl DistanceView
impl DistanceView
sourcepub fn distance_bucket(&self) -> DistanceBucket
pub fn distance_bucket(&self) -> DistanceBucket
Returns the enum value of distance_bucket
, or the default if the field is set to an invalid enum value.
sourcepub fn set_distance_bucket(&mut self, value: DistanceBucket)
pub fn set_distance_bucket(&mut self, value: DistanceBucket)
Sets distance_bucket
to the provided enum value.
sourcepub fn metric_system(&self) -> bool
pub fn metric_system(&self) -> bool
Returns the value of metric_system
, or the default value if metric_system
is unset.
Trait Implementations§
source§impl Clone for DistanceView
impl Clone for DistanceView
source§fn clone(&self) -> DistanceView
fn clone(&self) -> DistanceView
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for DistanceView
impl Debug for DistanceView
source§impl Default for DistanceView
impl Default for DistanceView
source§impl Message for DistanceView
impl Message for DistanceView
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
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,
source§fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
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,
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,
source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
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,
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,
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,
self
.source§impl PartialEq for DistanceView
impl PartialEq for DistanceView
source§fn eq(&self, other: &DistanceView) -> bool
fn eq(&self, other: &DistanceView) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for DistanceView
Auto Trait Implementations§
impl Freeze for DistanceView
impl RefUnwindSafe for DistanceView
impl Send for DistanceView
impl Sync for DistanceView
impl Unpin for DistanceView
impl UnwindSafe for DistanceView
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<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