pub struct CriticReviewsResponse {
pub title: Option<String>,
pub image: Option<Image>,
pub total_num_reviews: Option<u32>,
pub percent_favorable: Option<u32>,
pub source_text: Option<String>,
pub source: Option<Link>,
pub review: Vec<Review>,
}Fields§
§title: Option<String>§image: Option<Image>§total_num_reviews: Option<u32>§percent_favorable: Option<u32>§source_text: Option<String>§source: Option<Link>§review: Vec<Review>Implementations§
Source§impl CriticReviewsResponse
impl CriticReviewsResponse
Sourcepub fn title(&self) -> &str
pub fn title(&self) -> &str
Returns the value of title, or the default value if title is unset.
Sourcepub fn total_num_reviews(&self) -> u32
pub fn total_num_reviews(&self) -> u32
Returns the value of total_num_reviews, or the default value if total_num_reviews is unset.
Sourcepub fn percent_favorable(&self) -> u32
pub fn percent_favorable(&self) -> u32
Returns the value of percent_favorable, or the default value if percent_favorable is unset.
Sourcepub fn source_text(&self) -> &str
pub fn source_text(&self) -> &str
Returns the value of source_text, or the default value if source_text is unset.
Trait Implementations§
Source§impl Clone for CriticReviewsResponse
impl Clone for CriticReviewsResponse
Source§fn clone(&self) -> CriticReviewsResponse
fn clone(&self) -> CriticReviewsResponse
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CriticReviewsResponse
impl Debug for CriticReviewsResponse
Source§impl Default for CriticReviewsResponse
impl Default for CriticReviewsResponse
Source§impl Message for CriticReviewsResponse
impl Message for CriticReviewsResponse
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter.
Source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
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,
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,
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,
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,
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,
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,
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 moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
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 CriticReviewsResponse
impl PartialEq for CriticReviewsResponse
impl StructuralPartialEq for CriticReviewsResponse
Auto Trait Implementations§
impl Freeze for CriticReviewsResponse
impl RefUnwindSafe for CriticReviewsResponse
impl Send for CriticReviewsResponse
impl Sync for CriticReviewsResponse
impl Unpin for CriticReviewsResponse
impl UnwindSafe for CriticReviewsResponse
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
Mutably borrows from an owned value. Read more