pub struct GenericPayload {
pub value: Value,
}Expand description
Wraps any JSON value for hooks with no typed payload.
The third copy of this type in the workspace — cpex-ffi and the Python
bindings each define their own, because praxis-policy-core exports the
impl_plugin_payload! macro but not a shared struct. Consolidating all
three into praxis-policy-core is deferred follow-up work; it would touch the FFI and
the bindings, and is not needed to ship this host.
Fields§
§value: ValueTrait Implementations§
Source§impl Clone for GenericPayload
impl Clone for GenericPayload
Source§impl Debug for GenericPayload
impl Debug for GenericPayload
Source§impl<'de> Deserialize<'de> for GenericPayload
impl<'de> Deserialize<'de> for GenericPayload
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
Source§impl PluginPayload for GenericPayload
impl PluginPayload for GenericPayload
Source§fn clone_boxed(&self) -> Box<dyn PluginPayload>
fn clone_boxed(&self) -> Box<dyn PluginPayload>
Clone this payload into a new
Box<dyn PluginPayload>. Read moreSource§fn as_any_mut(&mut self) -> &mut dyn Any
fn as_any_mut(&mut self) -> &mut dyn Any
Downcast to a concrete type via
&mut dyn Any.Auto Trait Implementations§
impl Freeze for GenericPayload
impl RefUnwindSafe for GenericPayload
impl Send for GenericPayload
impl Sync for GenericPayload
impl Unpin for GenericPayload
impl UnsafeUnpin for GenericPayload
impl UnwindSafe for GenericPayload
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