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§
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
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.