Item

Struct Item 

Source
pub struct Item {
Show 35 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>, pub content_rating: Option<ContentRating>,
}

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>§content_rating: Option<ContentRating>

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 duplicate 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(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>
where 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( &self, buf: &mut impl BufMut, ) -> Result<(), EncodeError>
where 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(buf: impl Buf) -> Result<Self, DecodeError>
where Self: Default,

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

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

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

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

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

fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>
where 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

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

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

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> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. 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,

Source§

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

Source§

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

Source§

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.