pub struct JsonConfig { /* private fields */ }Expand description
Replacement for actix_web::web::JsonConfig
Error handler must map from an garde_actix_web::error::Error
Implementations§
Source§impl JsonConfig
impl JsonConfig
pub fn limit(self, limit: usize) -> Self
pub fn error_handler<F>(self, f: F) -> Self
pub fn content_type<F>(self, predicate: F) -> Self
pub fn content_type_required(self, content_type_required: bool) -> Self
pub fn from_req(req: &HttpRequest) -> &Self
Trait Implementations§
Source§impl Clone for JsonConfig
impl Clone for JsonConfig
Source§fn clone(&self) -> JsonConfig
fn clone(&self) -> JsonConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for JsonConfig
impl !RefUnwindSafe for JsonConfig
impl Send for JsonConfig
impl Sync for JsonConfig
impl Unpin for JsonConfig
impl !UnwindSafe for JsonConfig
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