pub struct OptimizeSvg;Expand description
SVG optimization processor — removes editor metadata, comments, unused namespaces, empty containers, and collapses redundant groups.
Trait Implementations§
Source§impl NodeProcessor for OptimizeSvg
impl NodeProcessor for OptimizeSvg
Source§fn name(&self) -> &str
fn name(&self) -> &str
The processor’s type key (e.g., “image-compress”).
Must match the key used in
registry.register().
Convention: category-operation, kebab-case.Source§fn metadata(&self) -> NodeMetadata
fn metadata(&self) -> NodeMetadata
Return the processor’s self-describing metadata. Read more
Source§fn process(
&self,
input: NodeInput,
progress: &ProgressReporter,
_ctx: &dyn ProcessContext,
) -> Result<NodeOutput, BntoError>
fn process( &self, input: NodeInput, progress: &ProgressReporter, _ctx: &dyn ProcessContext, ) -> Result<NodeOutput, BntoError>
Process a single input file and produce output. Read more
Source§fn validate(&self, params: &Map<String, Value>) -> Vec<String>
fn validate(&self, params: &Map<String, Value>) -> Vec<String>
Validate the input parameters before processing. Read more
Source§fn process_batch(
&self,
input: BatchInput,
progress: &ProgressReporter,
ctx: &dyn ProcessContext,
) -> Result<NodeOutput, BntoError>
fn process_batch( &self, input: BatchInput, progress: &ProgressReporter, ctx: &dyn ProcessContext, ) -> Result<NodeOutput, BntoError>
Process a batch of files together, producing combined output. Read more
Auto Trait Implementations§
impl Freeze for OptimizeSvg
impl RefUnwindSafe for OptimizeSvg
impl Send for OptimizeSvg
impl Sync for OptimizeSvg
impl Unpin for OptimizeSvg
impl UnsafeUnpin for OptimizeSvg
impl UnwindSafe for OptimizeSvg
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