pub struct Emby {
pub url: String,
pub token: String,
pub metadata_refresh_mode: EmbyMetadataRefreshMode,
pub refresh_metadata: bool,
}
Fields§
§url: String
URL to the Jellyfin/Emby server
token: String
API token for the Jellyfin/Emby server
metadata_refresh_mode: EmbyMetadataRefreshMode
Metadata refresh mode (default: FullRefresh)
refresh_metadata: bool
Whether to try to refresh metadata for the item instead of scan (default: true)
Implementations§
source§impl Emby
impl Emby
fn get_client(&self) -> Result<Client>
async fn libraries(&self) -> Result<Vec<Library>>
fn get_library(&self, libraries: &[Library], path: &str) -> Option<Library>
async fn _get_item(&self, library: &Library, path: &str) -> Result<Option<Item>>
async fn get_items<'a>( &self, library: &Library, events: Vec<&'a ScanEvent>, ) -> Result<(Vec<(&'a ScanEvent, Item)>, Vec<&'a ScanEvent>)>
async fn scan(&self, ev: &[&ScanEvent]) -> Result<()>
async fn refresh_item(&self, item: &Item) -> Result<()>
Trait Implementations§
source§impl<'de> Deserialize<'de> for Emby
impl<'de> Deserialize<'de> for Emby
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 Emby
impl RefUnwindSafe for Emby
impl Send for Emby
impl Sync for Emby
impl Unpin for Emby
impl UnwindSafe for Emby
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
)