Skip to main content

MethodSchemaLike

Trait MethodSchemaLike 

Source
pub trait MethodSchemaLike {
    // Required methods
    fn name(&self) -> &str;
    fn params(&self) -> &[impl ParamSchemaLike];
    fn is_scoped(&self) -> bool;
    fn scope_field(&self) -> &str;
    fn description(&self) -> &str;
    fn is_streaming(&self) -> bool;
    fn cli_hidden(&self) -> bool;
}
Expand description

Trait to abstract over the structurally identical but distinct MethodSchema types generated by each service’s proc macro invocation.

Required Methods§

Source

fn name(&self) -> &str

Source

fn params(&self) -> &[impl ParamSchemaLike]

Source

fn is_scoped(&self) -> bool

Source

fn scope_field(&self) -> &str

Source

fn description(&self) -> &str

Source

fn is_streaming(&self) -> bool

Source

fn cli_hidden(&self) -> bool

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§