Struct Playlist
pub struct Playlist {
pub playlist_id: Option<String>,
pub playlist_name: String,
pub playlist_coverpath: Option<String>,
pub playlist_song_count: f64,
pub playlist_desc: Option<String>,
pub playlist_path: Option<String>,
pub extension: Option<String>,
pub icon: Option<String>,
pub library_item: Option<bool>,
}Fields§
§playlist_id: Option<String>§playlist_name: String§playlist_coverpath: Option<String>§playlist_song_count: f64§playlist_desc: Option<String>§playlist_path: Option<String>§extension: Option<String>§icon: Option<String>§library_item: Option<bool>Implementations§
§impl Playlist
impl Playlist
pub fn playlist_id(&self) -> &str
pub fn playlist_id(&self) -> &str
Returns the value of playlist_id, or the default value if playlist_id is unset.
pub fn playlist_coverpath(&self) -> &str
pub fn playlist_coverpath(&self) -> &str
Returns the value of playlist_coverpath, or the default value if playlist_coverpath is unset.
pub fn playlist_desc(&self) -> &str
pub fn playlist_desc(&self) -> &str
Returns the value of playlist_desc, or the default value if playlist_desc is unset.
pub fn playlist_path(&self) -> &str
pub fn playlist_path(&self) -> &str
Returns the value of playlist_path, or the default value if playlist_path is unset.
pub fn extension(&self) -> &str
pub fn extension(&self) -> &str
Returns the value of extension, or the default value if extension is unset.
pub fn library_item(&self) -> bool
pub fn library_item(&self) -> bool
Returns the value of library_item, or the default value if library_item is unset.
Trait Implementations§
§impl Message for Playlist
impl Message for Playlist
§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter.
§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
§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.
§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
§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.
§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
§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.
§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 more§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.impl StructuralPartialEq for Playlist
Auto Trait Implementations§
impl Freeze for Playlist
impl RefUnwindSafe for Playlist
impl Send for Playlist
impl Sync for Playlist
impl Unpin for Playlist
impl UnwindSafe for Playlist
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)