pub struct FixtureHandler {
pub route: String,
pub method: String,
pub parameters: Option<Value>,
pub body_schema: Option<Value>,
pub response_schema: Option<Value>,
pub cors: Option<Value>,
pub middleware: Option<Value>,
pub dependencies: Option<Value>,
pub handler_dependencies: Option<Value>,
pub route_overrides: Option<Value>,
pub injection_strategy: Option<String>,
}Fields§
§route: String§method: String§parameters: Option<Value>§body_schema: Option<Value>§response_schema: Option<Value>§cors: Option<Value>§middleware: Option<Value>§dependencies: Option<Value>Dependency injection: app-level dependencies
handler_dependencies: Option<Value>Dependency injection: dependencies required by this handler
route_overrides: Option<Value>Dependency injection: route-level dependency overrides
injection_strategy: Option<String>Dependency injection: injection strategy
Trait Implementations§
Source§impl Clone for FixtureHandler
impl Clone for FixtureHandler
Source§fn clone(&self) -> FixtureHandler
fn clone(&self) -> FixtureHandler
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 FixtureHandler
impl Debug for FixtureHandler
Source§impl<'de> Deserialize<'de> for FixtureHandler
impl<'de> Deserialize<'de> for FixtureHandler
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for FixtureHandler
impl RefUnwindSafe for FixtureHandler
impl Send for FixtureHandler
impl Sync for FixtureHandler
impl Unpin for FixtureHandler
impl UnsafeUnpin for FixtureHandler
impl UnwindSafe for FixtureHandler
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