pub struct PluginOutput {
pub directives: Vec<DirectiveWrapper>,
pub errors: Vec<PluginError>,
}Expand description
Output returned from a plugin.
The plugin serializes this struct via MessagePack and returns a pointer
to it from the process function.
Fields§
§directives: Vec<DirectiveWrapper>Processed directives (may be modified, added, or removed).
errors: Vec<PluginError>Errors generated by the plugin.
Implementations§
Source§impl PluginOutput
impl PluginOutput
Sourcepub const fn passthrough(directives: Vec<DirectiveWrapper>) -> Self
pub const fn passthrough(directives: Vec<DirectiveWrapper>) -> Self
Create an output that passes through directives unchanged.
Trait Implementations§
Source§impl Clone for PluginOutput
impl Clone for PluginOutput
Source§fn clone(&self) -> PluginOutput
fn clone(&self) -> PluginOutput
Returns a duplicate of the value. Read more
1.0.0 · 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 PluginOutput
impl Debug for PluginOutput
Source§impl<'de> Deserialize<'de> for PluginOutput
impl<'de> Deserialize<'de> for PluginOutput
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 PluginOutput
impl RefUnwindSafe for PluginOutput
impl Send for PluginOutput
impl Sync for PluginOutput
impl Unpin for PluginOutput
impl UnsafeUnpin for PluginOutput
impl UnwindSafe for PluginOutput
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