Skip to main content

Params

Trait Params 

pub trait Params:
    Serialize
    + DeserializeOwned
    + JsonSchema
    + Clone
    + 'static {
    type Resource;
    type Paths: Clone;

    const ACTION: ActionRef<Self::Resource, Self>;

    // Required method
    fn paths() -> Self::Paths;
}
Expand description

A verb’s generated parameter struct, linked to the verb it is the input of. A form is a local value of it; submitting the form invokes Self::ACTION with it.

Required Associated Constants§

const ACTION: ActionRef<Self::Resource, Self>

The verb.

Required Associated Types§

type Resource

The resource the verb belongs to.

type Paths: Clone

The typed paths into the parameters, one per parameter.

Required Methods§

fn paths() -> Self::Paths

The typed paths into the parameters.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§