pub enum GetLyricsResponse {
Success(LyricsData),
Error(ErrorResponse),
}
Variants§
Success(LyricsData)
Error(ErrorResponse)
Implementations§
Source§impl GetLyricsResponse
impl GetLyricsResponse
Sourcepub const fn is_success(&self) -> bool
pub const fn is_success(&self) -> bool
Returns true if the enum is GetLyricsResponse::Success otherwise false
Trait Implementations§
Source§impl Debug for GetLyricsResponse
impl Debug for GetLyricsResponse
Source§impl<'de> Deserialize<'de> for GetLyricsResponse
impl<'de> Deserialize<'de> for GetLyricsResponse
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 GetLyricsResponse
impl RefUnwindSafe for GetLyricsResponse
impl Send for GetLyricsResponse
impl Sync for GetLyricsResponse
impl Unpin for GetLyricsResponse
impl UnwindSafe for GetLyricsResponse
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