pub struct FormDataFormat { /* private fields */ }Expand description
Built-in application/x-www-form-urlencoded data format.
Implementations§
Source§impl FormDataFormat
impl FormDataFormat
Sourcepub fn new(cfg: FormConfig) -> Self
pub fn new(cfg: FormConfig) -> Self
Creates a form data format with the given FormConfig.
Trait Implementations§
Source§impl Clone for FormDataFormat
impl Clone for FormDataFormat
Source§impl DataFormat for FormDataFormat
impl DataFormat for FormDataFormat
fn name(&self) -> &str
fn unmarshal(&self, body: Body) -> Result<Body, CamelError>
fn marshal(&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).Source§impl Debug for FormDataFormat
impl Debug for FormDataFormat
Auto Trait Implementations§
impl Freeze for FormDataFormat
impl RefUnwindSafe for FormDataFormat
impl Send for FormDataFormat
impl Sync for FormDataFormat
impl Unpin for FormDataFormat
impl UnsafeUnpin for FormDataFormat
impl UnwindSafe for FormDataFormat
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