pub struct Route {
pub method: &'static str,
pub path: &'static str,
pub summary: &'static str,
pub who: &'static str,
pub body: Option<fn() -> Value>,
pub ok: u16,
pub answer: Option<fn() -> Value>,
pub agents: Agents,
}Expand description
One identity endpoint.
Fields§
§method: &'static str§path: &'static strUnder /api/v1/auth/, with {param}s.
summary: &'static str§who: &'static strWho may call it.
body: Option<fn() -> Value>The JSON body, when it takes one.
ok: u16The success status.
answer: Option<fn() -> Value>The success answer (None: no body, or a redirect).
agents: AgentsTrait Implementations§
Auto Trait Implementations§
impl Freeze for Route
impl RefUnwindSafe for Route
impl Send for Route
impl Sync for Route
impl Unpin for Route
impl UnsafeUnpin for Route
impl UnwindSafe for Route
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