pub struct LocationGroupInfo {
pub feed: String,
pub geo_target_constants: Vec<String>,
pub radius: i64,
pub radius_units: i32,
pub feed_item_sets: Vec<String>,
pub enable_customer_level_location_asset_set: bool,
pub location_group_asset_sets: Vec<String>,
}
Expand description
A radius around a list of locations specified through a feed or assetSet.
Fields§
§feed: String
Feed specifying locations for targeting. Cannot be set with AssetSet fields. This is required and must be set in CREATE operations.
geo_target_constants: Vec<String>
Geo target constant(s) restricting the scope of the geographic area within the feed. Currently only one geo target constant is allowed. Cannot be set with AssetSet fields.
radius: i64
Distance in units specifying the radius around targeted locations. This is required and must be set in CREATE operations.
radius_units: i32
Unit of the radius. Miles and meters are supported for geo target constants. Milli miles and meters are supported for feed item sets and asset sets. This is required and must be set in CREATE operations.
feed_item_sets: Vec<String>
FeedItemSets whose FeedItems are targeted. If multiple IDs are specified, then all items that appear in at least one set are targeted. This field cannot be used with geo_target_constants. This is optional and can only be set in CREATE operations. Cannot be set with AssetSet fields.
enable_customer_level_location_asset_set: bool
Denotes that the latest customer level asset set is used for targeting. Used with radius and radius_units. Cannot be used with feed, geo target constants or feed item sets. When using asset sets, either this field or location_group_asset_sets should be specified. Both cannot be used at the same time. This can only be set in CREATE operations.
location_group_asset_sets: Vec<String>
AssetSets whose Assets are targeted. If multiple IDs are specified, then all items that appear in at least one set are targeted. This field cannot be used with feed, geo target constants or feed item sets. When using asset sets, either this field or enable_customer_level_location_asset_set should be specified. Both cannot be used at the same time. This can only be set in CREATE operations.
Implementations§
Source§impl LocationGroupInfo
impl LocationGroupInfo
Sourcepub fn radius_units(&self) -> LocationGroupRadiusUnits
pub fn radius_units(&self) -> LocationGroupRadiusUnits
Returns the enum value of radius_units
, or the default if the field is set to an invalid enum value.
Sourcepub fn set_radius_units(&mut self, value: LocationGroupRadiusUnits)
pub fn set_radius_units(&mut self, value: LocationGroupRadiusUnits)
Sets radius_units
to the provided enum value.
Trait Implementations§
Source§impl Clone for LocationGroupInfo
impl Clone for LocationGroupInfo
Source§fn clone(&self) -> LocationGroupInfo
fn clone(&self) -> LocationGroupInfo
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for LocationGroupInfo
impl Debug for LocationGroupInfo
Source§impl Default for LocationGroupInfo
impl Default for LocationGroupInfo
Source§impl Message for LocationGroupInfo
impl Message for LocationGroupInfo
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Source§fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>
fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>
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<B>(&self, buf: &mut B) -> Result<(), EncodeError>
fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>
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<B>(buf: B) -> Result<Self, DecodeError>
fn decode<B>(buf: B) -> Result<Self, DecodeError>
Source§fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
Source§fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
self
. Read moreSource§fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>
fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>
self
.Source§impl PartialEq for LocationGroupInfo
impl PartialEq for LocationGroupInfo
impl StructuralPartialEq for LocationGroupInfo
Auto Trait Implementations§
impl Freeze for LocationGroupInfo
impl RefUnwindSafe for LocationGroupInfo
impl Send for LocationGroupInfo
impl Sync for LocationGroupInfo
impl Unpin for LocationGroupInfo
impl UnwindSafe for LocationGroupInfo
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<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