pub struct BestSellersBrandView {
    pub report_date: Option<Date>,
    pub report_granularity: Option<i32>,
    pub report_country_code: Option<String>,
    pub report_category_id: Option<i64>,
    pub brand: Option<String>,
    pub rank: Option<i64>,
    pub previous_rank: Option<i64>,
    pub relative_demand: Option<i32>,
    pub previous_relative_demand: Option<i32>,
    pub relative_demand_change: Option<i32>,
}
Expand description

Fields available for query in best_sellers_brand_view table.

Best sellers report with top brands.

Values are only set for fields requested explicitly in the request’s search query.

Fields§

§report_date: Option<Date>

Report date. The value of this field can only be one of the following:

  • The first day of the week (Monday) for weekly reports,
  • The first day of the month for monthly reports.

Required in the SELECT clause. If a WHERE condition on report_date is not specified in the query, the latest available weekly or monthly report is returned.

§report_granularity: Option<i32>

Granularity of the report. The ranking can be done over a week or a month timeframe.

Required in the SELECT clause. Condition on report_granularity is required in the WHERE clause.

§report_country_code: Option<String>

Country where the ranking is calculated. Represented in the ISO 3166 format.

Required in the SELECT clause. Condition on report_country_code is required in the WHERE clause.

§report_category_id: Option<i64>

Google product category ID to calculate the ranking for, represented in Google’s product taxonomy.

Required in the SELECT clause. If a WHERE condition on report_category_id is not specified in the query, rankings for all top-level categories are returned.

§brand: Option<String>

Name of the brand.

§rank: Option<i64>

Popularity of the brand on Ads and organic surfaces, in the selected category and country, based on the estimated number of units sold.

§previous_rank: Option<i64>

Popularity rank in the previous week or month.

§relative_demand: Option<i32>

Estimated demand in relation to the brand with the highest popularity rank in the same category and country.

§previous_relative_demand: Option<i32>

Estimated demand in relation to the brand with the highest popularity rank in the same category and country in the previous week or month.

§relative_demand_change: Option<i32>

Change in the estimated demand. Whether it rose, sank or remained flat.

Implementations§

source§

impl BestSellersBrandView

source

pub fn report_granularity(&self) -> ReportGranularityEnum

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

source

pub fn set_report_granularity(&mut self, value: ReportGranularityEnum)

Sets report_granularity to the provided enum value.

source

pub fn report_country_code(&self) -> &str

Returns the value of report_country_code, or the default value if report_country_code is unset.

source

pub fn report_category_id(&self) -> i64

Returns the value of report_category_id, or the default value if report_category_id is unset.

source

pub fn brand(&self) -> &str

Returns the value of brand, or the default value if brand is unset.

source

pub fn rank(&self) -> i64

Returns the value of rank, or the default value if rank is unset.

source

pub fn previous_rank(&self) -> i64

Returns the value of previous_rank, or the default value if previous_rank is unset.

source

pub fn relative_demand(&self) -> RelativeDemandEnum

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

source

pub fn set_relative_demand(&mut self, value: RelativeDemandEnum)

Sets relative_demand to the provided enum value.

source

pub fn previous_relative_demand(&self) -> RelativeDemandEnum

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

source

pub fn set_previous_relative_demand(&mut self, value: RelativeDemandEnum)

Sets previous_relative_demand to the provided enum value.

source

pub fn relative_demand_change(&self) -> RelativeDemandChangeTypeEnum

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

source

pub fn set_relative_demand_change( &mut self, value: RelativeDemandChangeTypeEnum )

Sets relative_demand_change to the provided enum value.

Trait Implementations§

source§

impl Clone for BestSellersBrandView

source§

fn clone(&self) -> BestSellersBrandView

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for BestSellersBrandView

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Default for BestSellersBrandView

source§

fn default() -> Self

Returns the “default value” for a type. Read more
source§

impl Message for BestSellersBrandView

source§

fn encoded_len(&self) -> usize

Returns the encoded length of the message without a length delimiter.
source§

fn clear(&mut self)

Clears the message, resetting all fields to their default.
source§

fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>
where B: BufMut, Self: Sized,

Encodes the message to a buffer. Read more
source§

fn encode_to_vec(&self) -> Vec<u8>
where Self: Sized,

Encodes the message to a newly allocated buffer.
source§

fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>
where B: BufMut, Self: Sized,

Encodes the message with a length-delimiter to a buffer. Read more
source§

fn encode_length_delimited_to_vec(&self) -> Vec<u8>
where Self: Sized,

Encodes the message with a length-delimiter to a newly allocated buffer.
source§

fn decode<B>(buf: B) -> Result<Self, DecodeError>
where B: Buf, Self: Default,

Decodes an instance of the message from a buffer. Read more
source§

fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
where B: Buf, Self: Default,

Decodes a length-delimited instance of the message from the buffer.
source§

fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
where B: Buf, Self: Sized,

Decodes an instance of the message from a buffer, and merges it into self. Read more
source§

fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>
where B: Buf, Self: Sized,

Decodes a length-delimited instance of the message from buffer, and merges it into self.
source§

impl PartialEq for BestSellersBrandView

source§

fn eq(&self, other: &BestSellersBrandView) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl StructuralPartialEq for BestSellersBrandView

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> FromRef<T> for T
where T: Clone,

§

fn from_ref(input: &T) -> T

Converts to this type from a reference to the input type.
§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> IntoRequest<T> for T

source§

fn into_request(self) -> Request<T>

Wrap the input message T in a tonic::Request
source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

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

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more