pub struct Review {
Show 17 fields pub author_name: Option<String>, pub url: Option<String>, pub source: Option<String>, pub version: Option<String>, pub timestamp: Option<i64>, pub star_rating: Option<i32>, pub title: Option<String>, pub comment: Option<String>, pub comment_id: Option<String>, pub device_name: Option<String>, pub reply_text: Option<String>, pub reply_time_stamp: Option<i64>, pub author: Option<ReviewAuthor>, pub user_profile: Option<UserProfile>, pub sentiment: Option<Image>, pub helpful_count: Option<i32>, pub thumbs_up_count: Option<i64>,
}

Fields§

§author_name: Option<String>§url: Option<String>§source: Option<String>§version: Option<String>§timestamp: Option<i64>§star_rating: Option<i32>§title: Option<String>§comment: Option<String>§comment_id: Option<String>§device_name: Option<String>§reply_text: Option<String>§reply_time_stamp: Option<i64>§author: Option<ReviewAuthor>§user_profile: Option<UserProfile>§sentiment: Option<Image>§helpful_count: Option<i32>§thumbs_up_count: Option<i64>

Implementations§

source§

impl Review

source

pub fn author_name(&self) -> &str

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

source

pub fn url(&self) -> &str

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

source

pub fn source(&self) -> &str

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

source

pub fn version(&self) -> &str

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

source

pub fn timestamp(&self) -> i64

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

source

pub fn star_rating(&self) -> i32

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

source

pub fn title(&self) -> &str

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

source

pub fn comment(&self) -> &str

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

source

pub fn comment_id(&self) -> &str

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

source

pub fn device_name(&self) -> &str

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

source

pub fn reply_text(&self) -> &str

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

source

pub fn reply_time_stamp(&self) -> i64

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

source

pub fn helpful_count(&self) -> i32

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

source

pub fn thumbs_up_count(&self) -> i64

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

Trait Implementations§

source§

impl Clone for Review

source§

fn clone(&self) -> Review

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 Review

source§

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

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

impl Default for Review

source§

fn default() -> Self

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

impl Message for Review

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 Review

source§

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

Auto Trait Implementations§

§

impl Freeze for Review

§

impl RefUnwindSafe for Review

§

impl Send for Review

§

impl Sync for Review

§

impl Unpin for Review

§

impl UnwindSafe for Review

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.