pub struct SearchItem {
pub id: String,
pub name: String,
pub uri: String,
pub kind: SearchType,
pub artists: Vec<String>,
pub album: Option<String>,
pub duration_ms: Option<u32>,
pub owner: Option<String>,
pub score: Option<f32>,
}Expand description
Normalized search item across Spotify result types.
Fields§
§id: String§name: String§uri: String§kind: SearchTypeItem kind for mixed searches.
artists: Vec<String>Artist names for track/album results.
album: Option<String>Album name for track results.
duration_ms: Option<u32>Track duration in milliseconds for track results.
owner: Option<String>Owner display name for playlist results.
score: Option<f32>Optional fuzzy score, 0.0..=1.0.
Trait Implementations§
Source§impl Clone for SearchItem
impl Clone for SearchItem
Source§fn clone(&self) -> SearchItem
fn clone(&self) -> SearchItem
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SearchItem
impl Debug for SearchItem
Source§impl<'de> Deserialize<'de> for SearchItem
impl<'de> Deserialize<'de> for SearchItem
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for SearchItem
impl RefUnwindSafe for SearchItem
impl Send for SearchItem
impl Sync for SearchItem
impl Unpin for SearchItem
impl UnwindSafe for SearchItem
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more