1 2 3 4 5 6 7 8 9 10 11 12
use thiserror::Error;
/// Error type containing either the parsed structure or an error.
pub type JellyfinSDKResult<T> = std::result::Result<T, JellyfinSDKError>;
#[derive(Error, Debug)]
pub enum JellyfinSDKError {
#[error(transparent)]
ReqwestError(#[from] reqwest::Error),
#[error("No Jellyfin instance has been created before calling `get_api()` method...")]
NoJellyfinAPICreated,
}