pub struct Item {
Show 34 fields pub id: Option<String>, pub sub_id: Option<String>, pub type: Option<i32>, pub category_id: Option<i32>, pub title: Option<String>, pub creator: Option<String>, pub description_html: Option<String>, pub offer: Vec<Offer>, pub availability: Option<Availability>, pub image: Vec<Image>, pub sub_item: Vec<Item>, pub container_metadata: Option<ContainerMetadata>, pub details: Option<DocumentDetails>, pub aggregate_rating: Option<AggregateRating>, pub annotations: Option<Annotations>, pub details_url: Option<String>, pub share_url: Option<String>, pub reviews_url: Option<String>, pub backend_url: Option<String>, pub purchase_details_url: Option<String>, pub details_reusable: Option<bool>, pub subtitle: Option<String>, pub translated_description_html: Option<String>, pub server_logs_cookie: Option<Vec<u8>>, pub app_info: Option<AppInfo>, pub mature: Option<bool>, pub promotional_description: Option<String>, pub available_for_preregistration: Option<bool>, pub tip: Vec<ReviewTip>, pub review_snippets_url: Option<String>, pub force_shareability: Option<bool>, pub use_wishlist_as_primary_action: Option<bool>, pub review_questions_url: Option<String>, pub review_summary_url: Option<String>,
}

Fields§

§id: Option<String>§sub_id: Option<String>§type: Option<i32>§category_id: Option<i32>§title: Option<String>§creator: Option<String>§description_html: Option<String>§offer: Vec<Offer>§availability: Option<Availability>§image: Vec<Image>§sub_item: Vec<Item>§container_metadata: Option<ContainerMetadata>§details: Option<DocumentDetails>§aggregate_rating: Option<AggregateRating>§annotations: Option<Annotations>§details_url: Option<String>§share_url: Option<String>§reviews_url: Option<String>§backend_url: Option<String>§purchase_details_url: Option<String>§details_reusable: Option<bool>§subtitle: Option<String>§translated_description_html: Option<String>§server_logs_cookie: Option<Vec<u8>>§app_info: Option<AppInfo>§mature: Option<bool>§promotional_description: Option<String>§available_for_preregistration: Option<bool>§tip: Vec<ReviewTip>§review_snippets_url: Option<String>§force_shareability: Option<bool>§use_wishlist_as_primary_action: Option<bool>§review_questions_url: Option<String>§review_summary_url: Option<String>

Implementations§

source§

impl Item

source

pub fn id(&self) -> &str

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

source

pub fn sub_id(&self) -> &str

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

source

pub fn type(&self) -> i32

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

source

pub fn category_id(&self) -> i32

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

source

pub fn title(&self) -> &str

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

source

pub fn creator(&self) -> &str

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

source

pub fn description_html(&self) -> &str

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

source

pub fn details_url(&self) -> &str

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

source

pub fn share_url(&self) -> &str

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

source

pub fn reviews_url(&self) -> &str

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

source

pub fn backend_url(&self) -> &str

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

source

pub fn purchase_details_url(&self) -> &str

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

source

pub fn details_reusable(&self) -> bool

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

source

pub fn subtitle(&self) -> &str

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

source

pub fn translated_description_html(&self) -> &str

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

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

source

pub fn mature(&self) -> bool

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

source

pub fn promotional_description(&self) -> &str

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

source

pub fn available_for_preregistration(&self) -> bool

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

source

pub fn review_snippets_url(&self) -> &str

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

source

pub fn force_shareability(&self) -> bool

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

source

pub fn use_wishlist_as_primary_action(&self) -> bool

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

source

pub fn review_questions_url(&self) -> &str

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

source

pub fn review_summary_url(&self) -> &str

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

Trait Implementations§

source§

impl Clone for Item

source§

fn clone(&self) -> Item

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 Item

source§

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

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

impl Default for Item

source§

fn default() -> Self

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

impl Message for Item

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 Item

source§

fn eq(&self, other: &Item) -> 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 Item

Auto Trait Implementations§

§

impl Freeze for Item

§

impl RefUnwindSafe for Item

§

impl Send for Item

§

impl Sync for Item

§

impl Unpin for Item

§

impl UnwindSafe for Item

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.

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> 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.