pub struct MethodOverrides {
pub get: bool,
pub post: bool,
pub put: bool,
pub patch: bool,
pub delete: bool,
pub search: bool,
pub subscribe: bool,
pub connect: bool,
}Expand description
Configuration for which methods are overridden by a custom resource.
Used by ExtendedTableResource to know when to delegate to the table
vs. when to call the custom resource’s implementation.
Fields§
§get: boolOverride GET handler
post: boolOverride POST handler
put: boolOverride PUT handler
patch: boolOverride PATCH handler
delete: boolOverride DELETE handler
search: boolOverride SEARCH/query handler
subscribe: boolOverride SSE subscribe handler
connect: boolOverride WebSocket connect handler
Implementations§
Trait Implementations§
Source§impl Clone for MethodOverrides
impl Clone for MethodOverrides
Source§fn clone(&self) -> MethodOverrides
fn clone(&self) -> MethodOverrides
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 MethodOverrides
impl Debug for MethodOverrides
Source§impl Default for MethodOverrides
impl Default for MethodOverrides
Source§fn default() -> MethodOverrides
fn default() -> MethodOverrides
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for MethodOverrides
impl RefUnwindSafe for MethodOverrides
impl Send for MethodOverrides
impl Sync for MethodOverrides
impl Unpin for MethodOverrides
impl UnsafeUnpin for MethodOverrides
impl UnwindSafe for MethodOverrides
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