pub struct XmlDataFormat;Trait Implementations§
Source§impl DataFormat for XmlDataFormat
impl DataFormat for XmlDataFormat
fn name(&self) -> &str
fn marshal(&self, body: Body) -> Result<Body, CamelError>
fn unmarshal(&self, body: Body) -> Result<Body, CamelError>
Source§fn marshal_in_exchange(
&self,
exchange: &mut Exchange,
body: Body,
) -> Result<Body, CamelError>
fn marshal_in_exchange( &self, exchange: &mut Exchange, body: Body, ) -> Result<Body, CamelError>
Exchange-aware marshal hook. Default delegates to
marshal.
Override when the format needs Exchange context (e.g., writing
metadata headers like CamelCsvHeaderRecord).Source§fn unmarshal_in_exchange(
&self,
exchange: &mut Exchange,
body: Body,
) -> Result<Body, CamelError>
fn unmarshal_in_exchange( &self, exchange: &mut Exchange, body: Body, ) -> Result<Body, CamelError>
Exchange-aware unmarshal hook. Default delegates to
unmarshal.
Override when the format needs Exchange context (e.g., capturing
metadata headers like CamelCsvHeaderRecord).Auto Trait Implementations§
impl Freeze for XmlDataFormat
impl RefUnwindSafe for XmlDataFormat
impl Send for XmlDataFormat
impl Sync for XmlDataFormat
impl Unpin for XmlDataFormat
impl UnsafeUnpin for XmlDataFormat
impl UnwindSafe for XmlDataFormat
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