Struct Album
pub struct Album {
pub album_id: Option<String>,
pub album_name: Option<String>,
pub album_artist: Option<String>,
pub album_coverpath_high: Option<String>,
pub album_song_count: f64,
pub year: Option<String>,
pub album_coverpath_low: Option<String>,
}Fields§
§album_id: Option<String>§album_name: Option<String>§album_artist: Option<String>§album_coverpath_high: Option<String>§album_song_count: f64§year: Option<String>§album_coverpath_low: Option<String>Implementations§
§impl Album
impl Album
pub fn album_id(&self) -> &str
pub fn album_id(&self) -> &str
Returns the value of album_id, or the default value if album_id is unset.
pub fn album_name(&self) -> &str
pub fn album_name(&self) -> &str
Returns the value of album_name, or the default value if album_name is unset.
pub fn album_artist(&self) -> &str
pub fn album_artist(&self) -> &str
Returns the value of album_artist, or the default value if album_artist is unset.
pub fn album_coverpath_high(&self) -> &str
pub fn album_coverpath_high(&self) -> &str
Returns the value of album_coverpath_high, or the default value if album_coverpath_high is unset.
pub fn album_coverpath_low(&self) -> &str
pub fn album_coverpath_low(&self) -> &str
Returns the value of album_coverpath_low, or the default value if album_coverpath_low is unset.
Trait Implementations§
§impl Message for Album
impl Message for Album
§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 Album
Auto Trait Implementations§
impl Freeze for Album
impl RefUnwindSafe for Album
impl Send for Album
impl Sync for Album
impl Unpin for Album
impl UnwindSafe for Album
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)