pub struct SerializationInterceptor { /* private fields */ }Expand description
Interceptor that shapes JSON response objects using route serialization metadata.
Implementations§
Source§impl SerializationInterceptor
impl SerializationInterceptor
pub fn new() -> Self
pub fn with_options(options: SerializationOptions) -> Self
pub fn options(&self) -> &SerializationOptions
Trait Implementations§
Source§impl Clone for SerializationInterceptor
impl Clone for SerializationInterceptor
Source§fn clone(&self) -> SerializationInterceptor
fn clone(&self) -> SerializationInterceptor
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SerializationInterceptor
impl Debug for SerializationInterceptor
Source§impl Default for SerializationInterceptor
impl Default for SerializationInterceptor
Source§fn default() -> SerializationInterceptor
fn default() -> SerializationInterceptor
Returns the “default value” for a type. Read more
Source§impl Interceptor for SerializationInterceptor
impl Interceptor for SerializationInterceptor
fn after( &self, context: ExecutionContext, response: BootResponse, ) -> BoxFuture<'static, Result<BootResponse>>
Source§fn intercept<'a>(
&'a self,
context: ExecutionContext,
next: CallHandler<'a>,
) -> BoxFuture<'a, Result<BootResponse>>
fn intercept<'a>( &'a self, context: ExecutionContext, next: CallHandler<'a>, ) -> BoxFuture<'a, Result<BootResponse>>
Run around the remaining HTTP pipeline. Read more
fn before(&self, _context: ExecutionContext) -> BoxFuture<'static, Result<()>>
fn short_circuit( &self, _context: ExecutionContext, ) -> BoxFuture<'static, Result<Option<BootResponse>>>
Auto Trait Implementations§
impl Freeze for SerializationInterceptor
impl RefUnwindSafe for SerializationInterceptor
impl Send for SerializationInterceptor
impl Sync for SerializationInterceptor
impl Unpin for SerializationInterceptor
impl UnsafeUnpin for SerializationInterceptor
impl UnwindSafe for SerializationInterceptor
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