actix_router

Trait Resource

source
pub trait Resource {
    type Path: ResourcePath;

    // Required method
    fn resource_path(&mut self) -> &mut Path<Self::Path>;
}

Required Associated Types§

source

type Path: ResourcePath

Type of resource’s path returned in resource_path.

Required Methods§

source

fn resource_path(&mut self) -> &mut Path<Self::Path>

Implementors§

source§

impl<T, P> Resource for T
where T: DerefMut<Target = Path<P>>, P: ResourcePath,

source§

type Path = P

source§

impl<T: ResourcePath> Resource for Path<T>

source§

type Path = T