pub struct YamlProcessor;Expand description
Structured processor for YAML files.
Trait Implementations§
Source§impl Processor for YamlProcessor
impl Processor for YamlProcessor
Source§fn name(&self) -> &'static str
fn name(&self) -> &'static str
Unique name for this processor (e.g.
"json", "yaml", "key_value").Source§fn can_handle(&self, content: &[u8], profile: &FileTypeProfile) -> bool
fn can_handle(&self, content: &[u8], profile: &FileTypeProfile) -> bool
Quick heuristic: can this processor handle the given content? Read more
Source§fn process(
&self,
content: &[u8],
profile: &FileTypeProfile,
store: &MappingStore,
) -> Result<Vec<u8>>
fn process( &self, content: &[u8], profile: &FileTypeProfile, store: &MappingStore, ) -> Result<Vec<u8>>
Process the content, replacing matched field values one-way. Read more
Auto Trait Implementations§
impl Freeze for YamlProcessor
impl RefUnwindSafe for YamlProcessor
impl Send for YamlProcessor
impl Sync for YamlProcessor
impl Unpin for YamlProcessor
impl UnsafeUnpin for YamlProcessor
impl UnwindSafe for YamlProcessor
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