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.

Implementations on Foreign Types§

§

impl Params for AddEmoji

§

const ACTION: ActionRef<WorkspaceEmoji, AddEmoji> = WorkspaceEmoji::ADD_EMOJI

§

type Resource = WorkspaceEmoji

§

type Paths = AddEmojiPaths

§

fn paths() -> AddEmojiPaths

§

impl Params for CreateAgent

§

const ACTION: ActionRef<WorkspaceAgents, CreateAgent> = WorkspaceAgents::CREATE_AGENT

§

type Resource = WorkspaceAgents

§

type Paths = CreateAgentPaths

§

fn paths() -> CreateAgentPaths

§

impl Params for RecordAgentSpend

§

const ACTION: ActionRef<WorkspaceAgents, RecordAgentSpend> = WorkspaceAgents::RECORD_AGENT_SPEND

§

type Resource = WorkspaceAgents

§

type Paths = RecordAgentSpendPaths

§

fn paths() -> RecordAgentSpendPaths

§

impl Params for RemoveAnyEmoji

§

const ACTION: ActionRef<WorkspaceEmoji, RemoveAnyEmoji> = WorkspaceEmoji::REMOVE_ANY_EMOJI

§

type Resource = WorkspaceEmoji

§

type Paths = RemoveAnyEmojiPaths

§

fn paths() -> RemoveAnyEmojiPaths

§

impl Params for RemoveEmoji

§

const ACTION: ActionRef<WorkspaceEmoji, RemoveEmoji> = WorkspaceEmoji::REMOVE_EMOJI

§

type Resource = WorkspaceEmoji

§

type Paths = RemoveEmojiPaths

§

fn paths() -> RemoveEmojiPaths

§

impl Params for RenameAgent

§

const ACTION: ActionRef<WorkspaceAgents, RenameAgent> = WorkspaceAgents::RENAME_AGENT

§

type Resource = WorkspaceAgents

§

type Paths = RenameAgentPaths

§

fn paths() -> RenameAgentPaths

§

impl Params for RetireAgent

§

const ACTION: ActionRef<WorkspaceAgents, RetireAgent> = WorkspaceAgents::RETIRE_AGENT

§

type Resource = WorkspaceAgents

§

type Paths = RetireAgentPaths

§

fn paths() -> RetireAgentPaths

§

impl Params for SetAgentBound

§

const ACTION: ActionRef<WorkspaceAgents, SetAgentBound> = WorkspaceAgents::SET_AGENT_BOUND

§

type Resource = WorkspaceAgents

§

type Paths = SetAgentBoundPaths

§

fn paths() -> SetAgentBoundPaths

§

impl Params for SetAgentColour

§

const ACTION: ActionRef<WorkspaceAgents, SetAgentColour> = WorkspaceAgents::SET_AGENT_COLOUR

§

type Resource = WorkspaceAgents

§

type Paths = SetAgentColourPaths

§

fn paths() -> SetAgentColourPaths

§

impl Params for SetAgentModel

§

const ACTION: ActionRef<WorkspaceAgents, SetAgentModel> = WorkspaceAgents::SET_AGENT_MODEL

§

type Resource = WorkspaceAgents

§

type Paths = SetAgentModelPaths

§

fn paths() -> SetAgentModelPaths

§

impl Params for SetAgentSpendLimit

§

const ACTION: ActionRef<WorkspaceAgents, SetAgentSpendLimit> = WorkspaceAgents::SET_AGENT_SPEND_LIMIT

§

type Resource = WorkspaceAgents

§

type Paths = SetAgentSpendLimitPaths

§

fn paths() -> SetAgentSpendLimitPaths

Implementors§