pub struct UiToastMessage {
pub plugin: String,
pub text: String,
pub timeout_ms: u64,
pub uuid: String,
pub session_id: String,
}Expand description
system/ui_toast — one $.ui.toast(text) from a plugin in a headless
session: what the REPL shows on the notification bar under the prompt
for a few seconds, under the plugin’s name. Toasts arrive at no fixed
rate: CLI 2.1.289 dropped the hooks host’s 2 s spacing (CLI 2.1.285+).
Fields§
§plugin: StringThe calling plugin’s registry name, as the hooks engine knows it.
text: StringThe line the plugin gave: be ready for up to 10000 characters of it and then an ellipsis (4096 before CLI 2.1.289). Plain text: draw it as a text node, never as markup.
timeout_ms: u64How long the REPL would keep it on the notification bar: the plugin’s
timeoutMs, or the engine’s default (4000).
uuid: String§session_id: StringTrait Implementations§
Source§impl Clone for UiToastMessage
impl Clone for UiToastMessage
Source§impl Debug for UiToastMessage
impl Debug for UiToastMessage
Source§impl<'de> Deserialize<'de> for UiToastMessage
impl<'de> Deserialize<'de> for UiToastMessage
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 UiToastMessage
impl RefUnwindSafe for UiToastMessage
impl Send for UiToastMessage
impl Sync for UiToastMessage
impl Unpin for UiToastMessage
impl UnsafeUnpin for UiToastMessage
impl UnwindSafe for UiToastMessage
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