Struct stremio_core::models::ctx::Ctx
source · pub struct Ctx {
pub profile: Profile,
pub library: LibraryBucket,
pub notifications: NotificationsBucket,
pub streams: StreamsBucket,
pub search_history: SearchHistoryBucket,
pub dismissed_events: DismissedEventsBucket,
pub status: CtxStatus,
pub trakt_addon: Option<DescriptorLoadable>,
pub notification_catalogs: Vec<ResourceLoadable<Vec<MetaItem>>>,
pub events: Events,
}
Fields§
§profile: Profile
§library: LibraryBucket
§notifications: NotificationsBucket
§streams: StreamsBucket
§search_history: SearchHistoryBucket
§dismissed_events: DismissedEventsBucket
§status: CtxStatus
§trakt_addon: Option<DescriptorLoadable>
Used only for loading the Descriptor and then the descriptor will be discarded
notification_catalogs: Vec<ResourceLoadable<Vec<MetaItem>>>
§events: Events
Implementations§
source§impl Ctx
impl Ctx
pub fn new( profile: Profile, library: LibraryBucket, streams: StreamsBucket, notifications: NotificationsBucket, search_history: SearchHistoryBucket, dismissed_events: DismissedEventsBucket, ) -> Self
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Ctx
impl RefUnwindSafe for Ctx
impl Send for Ctx
impl Sync for Ctx
impl Unpin for Ctx
impl UnwindSafe for Ctx
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
)