Trait hrpc_build::Service [−][src]
pub trait Service { type Comment: AsRef<str>; type Method: Method; const CODEC_PATH: &'static str; fn name(&self) -> &str; fn package(&self) -> &str; fn identifier(&self) -> &str; fn methods(&self) -> &[Self::Method]; fn comment(&self) -> &[Self::Comment]; }
Expand description
Service generation trait.
This trait can be implemented and consumed
by client::generate
and server::generate
to allow any codegen module to generate service
abstractions.
Associated Types
Associated Constants
const CODEC_PATH: &'static str
[src]
const CODEC_PATH: &'static str
[src]Path to the codec.
Required methods
fn identifier(&self) -> &str
[src]
fn identifier(&self) -> &str
[src]Identifier used to generate type name.