Struct Artist
pub struct Artist {
pub artist_id: Option<String>,
pub artist_mbid: Option<String>,
pub artist_name: Option<String>,
pub artist_coverpath: Option<String>,
pub artist_song_count: f64,
pub sanitized_artist_name: Option<String>,
}Fields§
§artist_id: Option<String>§artist_mbid: Option<String>§artist_name: Option<String>§artist_coverpath: Option<String>§artist_song_count: f64§sanitized_artist_name: Option<String>Implementations§
§impl Artist
impl Artist
pub fn artist_id(&self) -> &str
pub fn artist_id(&self) -> &str
Returns the value of artist_id, or the default value if artist_id is unset.
pub fn artist_mbid(&self) -> &str
pub fn artist_mbid(&self) -> &str
Returns the value of artist_mbid, or the default value if artist_mbid is unset.
pub fn artist_name(&self) -> &str
pub fn artist_name(&self) -> &str
Returns the value of artist_name, or the default value if artist_name is unset.
pub fn artist_coverpath(&self) -> &str
pub fn artist_coverpath(&self) -> &str
Returns the value of artist_coverpath, or the default value if artist_coverpath is unset.
pub fn sanitized_artist_name(&self) -> &str
pub fn sanitized_artist_name(&self) -> &str
Returns the value of sanitized_artist_name, or the default value if sanitized_artist_name is unset.
Trait Implementations§
§impl Message for Artist
impl Message for Artist
§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 Artist
Auto Trait Implementations§
impl Freeze for Artist
impl RefUnwindSafe for Artist
impl Send for Artist
impl Sync for Artist
impl Unpin for Artist
impl UnwindSafe for Artist
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)