pub struct LRCLibAPI { /* private fields */ }
Implementations§
Source§impl LRCLibAPI
impl LRCLibAPI
pub fn new() -> Self
pub fn with_base_url(base_url: String) -> Self
pub fn with_user_agent(user_agent: String) -> Self
pub fn with_parts(base_url: String, user_agent: String) -> Self
Source§impl LRCLibAPI
impl LRCLibAPI
pub fn get_lyrics( &self, track_name: &str, artist_name: &str, album_name: Option<&str>, duration: Option<u64>, ) -> Result<Request<()>, ApiError>
pub fn get_lyrics_by_id(&self, id: u64) -> Result<Request<()>, ApiError>
pub fn search_lyrics( &self, query: Option<&str>, track_name: Option<&str>, artist_name: Option<&str>, album_name: Option<&str>, ) -> Result<Request<()>, ApiError>
pub fn request_publish_challenge(&self) -> Result<Request<()>, ApiError>
pub fn publish_lyrics( &self, lyrics: &LyricsData, publish_token: &str, ) -> Result<Request<String>, ApiError>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for LRCLibAPI
impl RefUnwindSafe for LRCLibAPI
impl Send for LRCLibAPI
impl Sync for LRCLibAPI
impl Unpin for LRCLibAPI
impl UnwindSafe for LRCLibAPI
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)