rust-server.server-service-header.mustache Maven / Gradle / Ivy
fn method_not_allowed() -> Result, crate::ServiceError> {
Ok(
Response::builder().status(StatusCode::METHOD_NOT_ALLOWED)
.body(Body::empty())
.expect("Unable to create Method Not Allowed response")
)
}
pub struct Service where
T: Api + Clone + Send + 'static,
C: Has {{#hasAuthMethods}}+ Has