#[non_exhaustive]pub struct UnframedViewNotification {
pub method: String,
pub params: UnframedViewNotificationParams,
}Expand description
One element of a view/page result’s events array: an unframed view
notification — the nested pair {"method", "params"}, which is the live
notification minus jsonrpc and emittedAtMs, with nothing lifted out of
params and nothing spliced into it. view/page and muse exec --json
share this one definition, so the two surfaces cannot drift.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.method: StringThe event type — the live notification’s method name, retained because the type lives only in the notification name and would otherwise be lost.
params: UnframedViewNotificationParamsThe notification’s params object, verbatim.
Trait Implementations§
Source§impl Clone for UnframedViewNotification
impl Clone for UnframedViewNotification
Source§impl Debug for UnframedViewNotification
impl Debug for UnframedViewNotification
Source§impl<'de> Deserialize<'de> for UnframedViewNotification
impl<'de> Deserialize<'de> for UnframedViewNotification
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
impl Eq for UnframedViewNotification
Source§impl PartialEq for UnframedViewNotification
impl PartialEq for UnframedViewNotification
Source§impl Serialize for UnframedViewNotification
impl Serialize for UnframedViewNotification
impl StructuralPartialEq for UnframedViewNotification
Auto Trait Implementations§
impl Forget for UnframedViewNotification
impl Freeze for UnframedViewNotification
impl Move for UnframedViewNotification
impl RefUnwindSafe for UnframedViewNotification
impl Send for UnframedViewNotification
impl Sync for UnframedViewNotification
impl Unpin for UnframedViewNotification
impl UnsafeUnpin for UnframedViewNotification
impl UnwindSafe for UnframedViewNotification
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