pub enum ActionCtx {
Show 23 variants
Authenticate(AuthRequest),
Logout,
InstallAddon(Descriptor),
InstallTraktAddon,
LogoutTrakt,
UpgradeAddon(Descriptor),
UninstallAddon(Descriptor),
UpdateSettings(Settings),
AddToLibrary(MetaItemPreview),
RemoveFromLibrary(String),
RewindLibraryItem(String),
LibraryItemMarkAsWatched {
id: LibraryItemId,
is_watched: bool,
},
ToggleLibraryItemNotifications(LibraryItemId, bool),
DismissNotificationItem(MetaItemId),
ClearSearchHistory,
PushUserToAPI,
PullUserFromAPI,
PushAddonsToAPI,
PullAddonsFromAPI,
SyncLibraryWithAPI,
PullNotifications,
GetEvents,
DismissEvent(String),
}
Variants§
Authenticate(AuthRequest)
Logout
InstallAddon(Descriptor)
InstallTraktAddon
LogoutTrakt
UpgradeAddon(Descriptor)
UninstallAddon(Descriptor)
UpdateSettings(Settings)
AddToLibrary(MetaItemPreview)
RemoveFromLibrary(String)
RewindLibraryItem(String)
LibraryItemMarkAsWatched
ToggleLibraryItemNotifications(LibraryItemId, bool)
If boolean is set to true
it will disable notifications for the LibraryItem.
DismissNotificationItem(MetaItemId)
Dismiss all Notification for a given MetaItemId
.
ClearSearchHistory
PushUserToAPI
PullUserFromAPI
PushAddonsToAPI
PullAddonsFromAPI
SyncLibraryWithAPI
PullNotifications
Pull notifications for all LibraryItem
s that we should pull notifications for.
Warning: The action will always trigger requests to the addons.
See LibraryItem::should_pull_notifications()
GetEvents
Make request to api to get events modal and notification
DismissEvent(String)
Dismiss an event by id, either a Modal or Notification
Trait Implementations§
source§impl<'de> Deserialize<'de> for ActionCtx
impl<'de> Deserialize<'de> for ActionCtx
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 ActionCtx
impl RefUnwindSafe for ActionCtx
impl Send for ActionCtx
impl Sync for ActionCtx
impl Unpin for ActionCtx
impl UnwindSafe for ActionCtx
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
)