pub struct Context {
pub plugin_id: String,
pub theme: Theme,
pub ui_state: UiState,
pub ui_event_data: HashMap<String, String>,
}
Expand description
Runtime context for UI operations
Fields§
§plugin_id: String
Current plugin ID
theme: Theme
Theme information
ui_state: UiState
UI state
ui_event_data: HashMap<String, String>
UI event data from frontend
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Context
impl RefUnwindSafe for Context
impl Send for Context
impl Sync for Context
impl Unpin for Context
impl UnwindSafe for Context
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