pub struct AuthRoute {
pub path: String,
pub method: HttpMethod,
pub operation_id: String,
}Expand description
Route definition for plugins
Fields§
§path: String§method: HttpMethod§operation_id: StringIdentifier used as the OpenAPI operationId for this route.
Implementations§
Source§impl AuthRoute
impl AuthRoute
pub fn new( method: HttpMethod, path: impl Into<String>, operation_id: impl Into<String>, ) -> Self
pub fn get(path: impl Into<String>, operation_id: impl Into<String>) -> Self
pub fn post(path: impl Into<String>, operation_id: impl Into<String>) -> Self
pub fn put(path: impl Into<String>, operation_id: impl Into<String>) -> Self
pub fn delete(path: impl Into<String>, operation_id: impl Into<String>) -> Self
Trait Implementations§
Auto Trait Implementations§
impl Freeze for AuthRoute
impl RefUnwindSafe for AuthRoute
impl Send for AuthRoute
impl Sync for AuthRoute
impl Unpin for AuthRoute
impl UnwindSafe for AuthRoute
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