pub struct ProcessorMetadata {
pub name: String,
pub description: String,
pub supported_manufacturers: Vec<String>,
pub required_context: Vec<String>,
pub optional_context: Vec<String>,
pub example_conditions: Vec<String>,
}Expand description
Metadata about a processor for introspection and debugging
This provides human-readable information about what a processor does, what it supports, and what context it requires.
Fields§
§name: StringHuman-readable name of the processor
description: StringDescription of what this processor handles
supported_manufacturers: Vec<String>Manufacturers this processor supports (e.g., [“Canon”, “Nikon”])
required_context: Vec<String>Required context fields for this processor to function Used for validation and error reporting
optional_context: Vec<String>Optional context fields that enhance processing
example_conditions: Vec<String>Example conditions where this processor would be selected
Implementations§
Source§impl ProcessorMetadata
impl ProcessorMetadata
Sourcepub fn with_manufacturer(self, manufacturer: String) -> Self
pub fn with_manufacturer(self, manufacturer: String) -> Self
Add supported manufacturer
Sourcepub fn with_required_context(self, field: String) -> Self
pub fn with_required_context(self, field: String) -> Self
Add required context field
Sourcepub fn with_optional_context(self, field: String) -> Self
pub fn with_optional_context(self, field: String) -> Self
Add optional context field
Sourcepub fn with_example_condition(self, condition: String) -> Self
pub fn with_example_condition(self, condition: String) -> Self
Add example condition
Trait Implementations§
Source§impl Clone for ProcessorMetadata
impl Clone for ProcessorMetadata
Auto Trait Implementations§
impl Freeze for ProcessorMetadata
impl RefUnwindSafe for ProcessorMetadata
impl Send for ProcessorMetadata
impl Sync for ProcessorMetadata
impl Unpin for ProcessorMetadata
impl UnsafeUnpin for ProcessorMetadata
impl UnwindSafe for ProcessorMetadata
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