pub enum SearchEngines {
YouTube,
YouTubeMusic,
SoundCloud,
Spotify,
SpotifyRecommended(SpotifyRecommendedParameters),
AppleMusic,
Deezer,
DeezerISRC,
YandexMusic,
FloweryTTS(FloweryTTSParameters),
}
Expand description
Search engines supported by Lavalink and LavaSrc.
Variants§
YouTube
YouTubeMusic
SoundCloud
Spotify
NOTE: Requires LavaSrc plugin.
SpotifyRecommended(SpotifyRecommendedParameters)
NOTE: Requires LavaSrc plugin.
AppleMusic
NOTE: Requires LavaSrc plugin.
Deezer
NOTE: Requires LavaSrc plugin.
DeezerISRC
NOTE: Requires LavaSrc plugin.
YandexMusic
NOTE: Requires LavaSrc plugin.
FloweryTTS(FloweryTTSParameters)
NOTE: Requires LavaSrc plugin.
Implementations§
Source§impl SearchEngines
impl SearchEngines
Sourcepub fn to_query(&self, base_query: &str) -> LavalinkResult<String>
pub fn to_query(&self, base_query: &str) -> LavalinkResult<String>
Create a String you can pip to load_tracks()
to get the search results.
Example:
let query = SearchEngines::YouTubeMusic.to_query("Ne Obliviscaris - Forget Not").unwrap();
lavalink_client.load_tracks(guild_id, query).await?;
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SearchEngines
impl RefUnwindSafe for SearchEngines
impl Send for SearchEngines
impl Sync for SearchEngines
impl Unpin for SearchEngines
impl UnwindSafe for SearchEngines
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