Struct googleplay_protobuf::googleplay::VideoDetails
source · [−]pub struct VideoDetails {
pub credit: Vec<VideoCredit>,
pub duration: Option<String>,
pub release_date: Option<String>,
pub content_rating: Option<String>,
pub likes: Option<i64>,
pub dislikes: Option<i64>,
pub genre: Vec<String>,
pub trailer: Vec<Trailer>,
pub rental_term: Vec<VideoRentalTerm>,
}
Fields
credit: Vec<VideoCredit>
duration: Option<String>
release_date: Option<String>
content_rating: Option<String>
likes: Option<i64>
dislikes: Option<i64>
genre: Vec<String>
trailer: Vec<Trailer>
rental_term: Vec<VideoRentalTerm>
Implementations
sourceimpl VideoDetails
impl VideoDetails
sourcepub fn duration(&self) -> &str
pub fn duration(&self) -> &str
Returns the value of duration
, or the default value if duration
is unset.
sourcepub fn release_date(&self) -> &str
pub fn release_date(&self) -> &str
Returns the value of release_date
, or the default value if release_date
is unset.
sourcepub fn content_rating(&self) -> &str
pub fn content_rating(&self) -> &str
Returns the value of content_rating
, or the default value if content_rating
is unset.
Trait Implementations
sourceimpl Clone for VideoDetails
impl Clone for VideoDetails
sourcefn clone(&self) -> VideoDetails
fn clone(&self) -> VideoDetails
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for VideoDetails
impl Debug for VideoDetails
sourceimpl Default for VideoDetails
impl Default for VideoDetails
sourceimpl Message for VideoDetails
impl Message for VideoDetails
sourcefn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter.
sourcefn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError> where
B: BufMut,
fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError> where
B: BufMut,
Encodes the message to a buffer. Read more
sourcefn encode_to_vec(&self) -> Vec<u8, Global>
fn encode_to_vec(&self) -> Vec<u8, Global>
Encodes the message to a newly allocated buffer.
sourcefn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError> where
B: BufMut,
fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError> where
B: BufMut,
Encodes the message with a length-delimiter to a buffer. Read more
sourcefn encode_length_delimited_to_vec(&self) -> Vec<u8, Global>
fn encode_length_delimited_to_vec(&self) -> Vec<u8, Global>
Encodes the message with a length-delimiter to a newly allocated buffer.
sourcefn decode<B>(buf: B) -> Result<Self, DecodeError> where
B: Buf,
Self: Default,
fn decode<B>(buf: B) -> Result<Self, DecodeError> where
B: Buf,
Self: Default,
Decodes an instance of the message from a buffer. Read more
sourcefn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError> where
B: Buf,
Self: Default,
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.
sourcefn merge<B>(&mut self, buf: B) -> Result<(), DecodeError> where
B: Buf,
fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError> where
B: Buf,
Decodes an instance of the message from a buffer, and merges it into self
. Read more
sourcefn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError> where
B: Buf,
fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError> where
B: Buf,
Decodes a length-delimited instance of the message from buffer, and
merges it into self
. Read more
sourceimpl PartialEq<VideoDetails> for VideoDetails
impl PartialEq<VideoDetails> for VideoDetails
sourcefn eq(&self, other: &VideoDetails) -> bool
fn eq(&self, other: &VideoDetails) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &VideoDetails) -> bool
fn ne(&self, other: &VideoDetails) -> bool
This method tests for !=
.
impl StructuralPartialEq for VideoDetails
Auto Trait Implementations
impl RefUnwindSafe for VideoDetails
impl Send for VideoDetails
impl Sync for VideoDetails
impl Unpin for VideoDetails
impl UnwindSafe for VideoDetails
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more