Struct googleplay_protobuf::googleplay::MusicDetails
source · [−]pub struct MusicDetails {
pub censoring: Option<i32>,
pub duration_sec: Option<i32>,
pub original_release_date: Option<String>,
pub label: Option<String>,
pub artist: Vec<ArtistDetails>,
pub genre: Vec<String>,
pub release_date: Option<String>,
pub release_type: Vec<i32>,
}
Fields
censoring: Option<i32>
duration_sec: Option<i32>
original_release_date: Option<String>
label: Option<String>
artist: Vec<ArtistDetails>
genre: Vec<String>
release_date: Option<String>
release_type: Vec<i32>
Implementations
sourceimpl MusicDetails
impl MusicDetails
sourcepub fn censoring(&self) -> i32
pub fn censoring(&self) -> i32
Returns the value of censoring
, or the default value if censoring
is unset.
sourcepub fn duration_sec(&self) -> i32
pub fn duration_sec(&self) -> i32
Returns the value of duration_sec
, or the default value if duration_sec
is unset.
sourcepub fn original_release_date(&self) -> &str
pub fn original_release_date(&self) -> &str
Returns the value of original_release_date
, or the default value if original_release_date
is unset.
sourcepub fn label(&self) -> &str
pub fn label(&self) -> &str
Returns the value of label
, or the default value if label
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.
Trait Implementations
sourceimpl Clone for MusicDetails
impl Clone for MusicDetails
sourcefn clone(&self) -> MusicDetails
fn clone(&self) -> MusicDetails
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 MusicDetails
impl Debug for MusicDetails
sourceimpl Default for MusicDetails
impl Default for MusicDetails
sourceimpl Message for MusicDetails
impl Message for MusicDetails
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<MusicDetails> for MusicDetails
impl PartialEq<MusicDetails> for MusicDetails
sourcefn eq(&self, other: &MusicDetails) -> bool
fn eq(&self, other: &MusicDetails) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &MusicDetails) -> bool
fn ne(&self, other: &MusicDetails) -> bool
This method tests for !=
.
impl StructuralPartialEq for MusicDetails
Auto Trait Implementations
impl RefUnwindSafe for MusicDetails
impl Send for MusicDetails
impl Sync for MusicDetails
impl Unpin for MusicDetails
impl UnwindSafe for MusicDetails
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