pub struct PluginRequest {
pub name: String,
pub config: Value,
pub context: GenerateContext,
}Expand description
Stdin envelope for a 3rd-party plugin subprocess. The engine
writes one of these as JSON to the plugin’s stdin, then reads a
PluginResponse back from stdout. Single round trip per plugin
per pipeline; the engine spawns one process per plugin.
Fields§
§name: StringStable plugin name — lets the binary match if it ships
multiple plugins from one entry point. Most binaries serve
exactly one plugin and just assert on this field.
config: ValuePlugin’s config as JSON. The subprocess deserializes it into
its Plugin::Config type.
context: GenerateContextCurrent state of the IRs going into this plugin. The
subprocess gets the full context (read-only app_meta,
option-of IR per target, journal so far) and returns the
post-mutation version.
Trait Implementations§
Source§impl Clone for PluginRequest
impl Clone for PluginRequest
Source§fn clone(&self) -> PluginRequest
fn clone(&self) -> PluginRequest
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PluginRequest
impl Debug for PluginRequest
Source§impl<'de> Deserialize<'de> for PluginRequest
impl<'de> Deserialize<'de> for PluginRequest
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 PluginRequest
impl RefUnwindSafe for PluginRequest
impl Send for PluginRequest
impl Sync for PluginRequest
impl Unpin for PluginRequest
impl UnsafeUnpin for PluginRequest
impl UnwindSafe for PluginRequest
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