pub struct Plugin {
pub name: String,
pub transform_document: Option<Box<dyn Fn(Value) -> Result<Value, String>>>,
pub transform_model: Option<Box<dyn Fn(Value) -> Result<Value, String>>>,
pub extend: Option<Box<dyn Fn(ExtendInput) -> Result<Vec<OutputFile>, String>>>,
pub transform_files: Option<Box<dyn Fn(Vec<OutputFile>) -> Result<Vec<OutputFile>, String>>>,
}Expand description
A plugin: a name and any of the stages. transform_document and transform_model work on JSON
values, so that nothing a newer tsurara adds is lost.
Fields§
§name: String§transform_document: Option<Box<dyn Fn(Value) -> Result<Value, String>>>§transform_model: Option<Box<dyn Fn(Value) -> Result<Value, String>>>§extend: Option<Box<dyn Fn(ExtendInput) -> Result<Vec<OutputFile>, String>>>§transform_files: Option<Box<dyn Fn(Vec<OutputFile>) -> Result<Vec<OutputFile>, String>>>Implementations§
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Plugin
impl !Send for Plugin
impl !Sync for Plugin
impl !UnwindSafe for Plugin
impl Forget for Plugin
impl Freeze for Plugin
impl Move for Plugin
impl Unpin for Plugin
impl UnsafeUnpin for Plugin
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