pub struct InsightsAudience {
pub country_locations: Vec<LocationInfo>,
pub sub_country_locations: Vec<LocationInfo>,
pub gender: Option<GenderInfo>,
pub age_ranges: Vec<AgeRangeInfo>,
pub parental_status: Option<ParentalStatusInfo>,
pub income_ranges: Vec<IncomeRangeInfo>,
pub dynamic_lineups: Vec<AudienceInsightsDynamicLineup>,
pub topic_audience_combinations: Vec<InsightsAudienceAttributeGroup>,
}
Expand description
A set of users, defined by various characteristics, for which insights can be requested in AudienceInsightsService.
Fields§
§country_locations: Vec<LocationInfo>
Required. The countries for the audience.
sub_country_locations: Vec<LocationInfo>
Sub-country geographic location attributes. If present, each of these must be contained in one of the countries in this audience. If absent, the audience is geographically to the country_locations and no further.
gender: Option<GenderInfo>
Gender for the audience. If absent, the audience does not restrict by gender.
age_ranges: Vec<AgeRangeInfo>
Age ranges for the audience. If absent, the audience represents all people over 18 that match the other attributes.
parental_status: Option<ParentalStatusInfo>
Parental status for the audience. If absent, the audience does not restrict by parental status.
income_ranges: Vec<IncomeRangeInfo>
Household income percentile ranges for the audience. If absent, the audience does not restrict by household income range.
dynamic_lineups: Vec<AudienceInsightsDynamicLineup>
Dynamic lineups representing the YouTube content viewed by the audience.
topic_audience_combinations: Vec<InsightsAudienceAttributeGroup>
A combination of entity, category and user interest attributes defining the audience. The combination has a logical AND-of-ORs structure: Attributes within each InsightsAudienceAttributeGroup are combined with OR, and the combinations themselves are combined together with AND. For example, the expression (Entity OR Affinity) AND (In-Market OR Category) can be formed using two InsightsAudienceAttributeGroups with two Attributes each.
Trait Implementations§
Source§impl Clone for InsightsAudience
impl Clone for InsightsAudience
Source§fn clone(&self) -> InsightsAudience
fn clone(&self) -> InsightsAudience
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for InsightsAudience
impl Debug for InsightsAudience
Source§impl Default for InsightsAudience
impl Default for InsightsAudience
Source§impl Message for InsightsAudience
impl Message for InsightsAudience
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 InsightsAudience
impl PartialEq for InsightsAudience
impl StructuralPartialEq for InsightsAudience
Auto Trait Implementations§
impl Freeze for InsightsAudience
impl RefUnwindSafe for InsightsAudience
impl Send for InsightsAudience
impl Sync for InsightsAudience
impl Unpin for InsightsAudience
impl UnwindSafe for InsightsAudience
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