Struct gapi_grpc::google::ads::googleads::v5::common::ProximityInfo[][src]

pub struct ProximityInfo {
    pub geo_point: Option<GeoPointInfo>,
    pub radius: f64,
    pub radius_units: i32,
    pub address: Option<AddressInfo>,
}

A Proximity criterion. The geo point and radius determine what geographical area is included. The address is a description of the geo point that does not affect ad serving.

There are two ways to create a proximity. First, by setting an address and radius. The geo point will be automatically computed. Second, by setting a geo point and radius. The address is an optional label that won’t be validated.

Fields

geo_point: Option<GeoPointInfo>

Latitude and longitude.

radius: f64

The radius of the proximity.

radius_units: i32

The unit of measurement of the radius. Default is KILOMETERS.

address: Option<AddressInfo>

Full address.

Implementations

impl ProximityInfo[src]

pub fn radius_units(&self) -> ProximityRadiusUnits[src]

Returns the enum value of radius_units, or the default if the field is set to an invalid enum value.

pub fn set_radius_units(&mut self, value: ProximityRadiusUnits)[src]

Sets radius_units to the provided enum value.

Trait Implementations

impl Clone for ProximityInfo[src]

impl Debug for ProximityInfo[src]

impl Default for ProximityInfo[src]

impl Message for ProximityInfo[src]

impl PartialEq<ProximityInfo> for ProximityInfo[src]

impl StructuralPartialEq for ProximityInfo[src]

Auto Trait Implementations

impl RefUnwindSafe for ProximityInfo

impl Send for ProximityInfo

impl Sync for ProximityInfo

impl Unpin for ProximityInfo

impl UnwindSafe for ProximityInfo

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> IntoRequest<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 
[src]

impl<T> WithSubscriber for T[src]