#[non_exhaustive]pub struct MusicSearchResult<T> {
pub items: Paginator<T>,
pub corrected_query: Option<String>,
}Expand description
YouTube Music search result
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.items: Paginator<T>Search items
corrected_query: Option<String>Corrected search query
If the search term containes a typo, YouTube instead searches for the corrected search term and displays it on top of the search results page.
Trait Implementations§
Source§impl<T: Clone> Clone for MusicSearchResult<T>
impl<T: Clone> Clone for MusicSearchResult<T>
Source§fn clone(&self) -> MusicSearchResult<T>
fn clone(&self) -> MusicSearchResult<T>
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<T: Debug> Debug for MusicSearchResult<T>
impl<T: Debug> Debug for MusicSearchResult<T>
Source§impl<'de, T> Deserialize<'de> for MusicSearchResult<T>where
T: Deserialize<'de>,
impl<'de, T> Deserialize<'de> for MusicSearchResult<T>where
T: Deserialize<'de>,
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
Source§impl<T: PartialEq> PartialEq for MusicSearchResult<T>
impl<T: PartialEq> PartialEq for MusicSearchResult<T>
Source§impl<T> Serialize for MusicSearchResult<T>where
T: Serialize,
impl<T> Serialize for MusicSearchResult<T>where
T: Serialize,
impl<T: Eq> Eq for MusicSearchResult<T>
impl<T> StructuralPartialEq for MusicSearchResult<T>
Auto Trait Implementations§
impl<T> Freeze for MusicSearchResult<T>
impl<T> RefUnwindSafe for MusicSearchResult<T>where
T: RefUnwindSafe,
impl<T> Send for MusicSearchResult<T>where
T: Send,
impl<T> Sync for MusicSearchResult<T>where
T: Sync,
impl<T> Unpin for MusicSearchResult<T>where
T: Unpin,
impl<T> UnwindSafe for MusicSearchResult<T>where
T: UnwindSafe,
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