Skip to main content

ContractParams

Trait ContractParams 

Source
pub trait ContractParams {
    const OPERATION: &'static str;

    // Required method
    fn values(&self) -> Vec<(&'static str, String)>;
}
Expand description

One operation’s parameters, in the shape the contract declares them.

Required Associated Constants§

Source

const OPERATION: &'static str

The operationId these parameters belong to.

Required Methods§

Source

fn values(&self) -> Vec<(&'static str, String)>

The wire pairs to send: set parameters only, under the contract’s own names.

An unset optional parameter is omitted rather than sent as a default, so the server’s default applies and this client never has to be updated when one of them changes.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl ContractParams for ExportSessionParams

Source§

const OPERATION: &'static str = "exportSession"

Source§

impl ContractParams for ExportSessionsParams

Source§

const OPERATION: &'static str = "exportSessions"

Source§

impl ContractParams for SearchSpansParams

Source§

const OPERATION: &'static str = "searchSpans"

Source§

impl ContractParams for SessionListParams

Source§

const OPERATION: &'static str = "listSessions"

Source§

impl ContractParams for SessionTracesParams

Source§

const OPERATION: &'static str = "getSessionTraces"

Source§

impl ContractParams for SkillsListParams

Source§

const OPERATION: &'static str = "listSkills"

Source§

impl ContractParams for StatsParams

Source§

const OPERATION: &'static str = "getStats"

Source§

impl ContractParams for TraceListParams

Source§

const OPERATION: &'static str = "listTraces"

Source§

impl ContractParams for TraceParams

Source§

const OPERATION: &'static str = "getTrace"