[][src]Trait trek_router::Resources

pub trait Resources {
    type Context;
    type Body;
    fn index(ctx: Self::Context) -> Self::Body;
fn create(ctx: Self::Context) -> Self::Body;
fn new(ctx: Self::Context) -> Self::Body;
fn show(ctx: Self::Context) -> Self::Body;
fn update(ctx: Self::Context) -> Self::Body;
fn delete(ctx: Self::Context) -> Self::Body;
fn edit(ctx: Self::Context) -> Self::Body; fn build<'a>(
        opts: ResourceOptions
    ) -> Vec<((&'a str, &'a str, &'a Method), fn(_: Self::Context) -> Self::Body)> { ... } }

Associated Types

type Context

type Body

Loading content...

Required methods

fn index(ctx: Self::Context) -> Self::Body

fn create(ctx: Self::Context) -> Self::Body

fn new(ctx: Self::Context) -> Self::Body

fn show(ctx: Self::Context) -> Self::Body

fn update(ctx: Self::Context) -> Self::Body

fn delete(ctx: Self::Context) -> Self::Body

fn edit(ctx: Self::Context) -> Self::Body

Loading content...

Provided methods

fn build<'a>(
    opts: ResourceOptions
) -> Vec<((&'a str, &'a str, &'a Method), fn(_: Self::Context) -> Self::Body)>

Loading content...

Implementors

Loading content...