Struct SearchableSong
pub struct SearchableSong {
pub id: Option<String>,
pub path: Option<String>,
pub title: Option<String>,
pub sample_rate: Option<f64>,
pub hash: Option<String>,
pub type: Option<i32>,
pub url: Option<String>,
pub playback_url: Option<String>,
pub provider_extension: Option<String>,
pub show_in_library: Option<bool>,
}Fields§
§id: Option<String>§path: Option<String>§title: Option<String>§sample_rate: Option<f64>§hash: Option<String>§type: Option<i32>§url: Option<String>§playback_url: Option<String>§provider_extension: Option<String>§show_in_library: Option<bool>Implementations§
§impl SearchableSong
impl SearchableSong
pub fn sample_rate(&self) -> f64
pub fn sample_rate(&self) -> f64
Returns the value of sample_rate, or the default value if sample_rate is unset.
pub fn type(&self) -> SongType
pub fn type(&self) -> SongType
Returns the enum value of type, or the default if the field is unset or set to an invalid enum value.
pub fn playback_url(&self) -> &str
pub fn playback_url(&self) -> &str
Returns the value of playback_url, or the default value if playback_url is unset.
pub fn provider_extension(&self) -> &str
pub fn provider_extension(&self) -> &str
Returns the value of provider_extension, or the default value if provider_extension is unset.
pub fn show_in_library(&self) -> bool
pub fn show_in_library(&self) -> bool
Returns the value of show_in_library, or the default value if show_in_library is unset.
Trait Implementations§
§impl Clone for SearchableSong
impl Clone for SearchableSong
§fn clone(&self) -> SearchableSong
fn clone(&self) -> SearchableSong
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read more§impl Debug for SearchableSong
impl Debug for SearchableSong
§impl Default for SearchableSong
impl Default for SearchableSong
§fn default() -> SearchableSong
fn default() -> SearchableSong
Returns the “default value” for a type. Read more
§impl Message for SearchableSong
impl Message for SearchableSong
§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 PartialEq for SearchableSong
impl PartialEq for SearchableSong
impl StructuralPartialEq for SearchableSong
Auto Trait Implementations§
impl Freeze for SearchableSong
impl RefUnwindSafe for SearchableSong
impl Send for SearchableSong
impl Sync for SearchableSong
impl Unpin for SearchableSong
impl UnwindSafe for SearchableSong
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)