Struct iota_open_rpc::RpcModuleDocBuilder
source · pub struct RpcModuleDocBuilder { /* private fields */ }
Implementations§
source§impl RpcModuleDocBuilder
impl RpcModuleDocBuilder
pub fn build(self) -> Module
pub fn add_method_routing( &mut self, namespace: &str, name: &str, route_to: &str, comparator: &str, version: &str, )
pub fn add_method( &mut self, namespace: &str, name: &str, params: Vec<ContentDescriptor>, result: Option<ContentDescriptor>, doc: &str, tag: Option<String>, deprecated: bool, )
pub fn add_subscription( &mut self, namespace: &str, name: &str, params: Vec<ContentDescriptor>, result: Option<ContentDescriptor>, doc: &str, tag: Option<String>, deprecated: bool, )
pub fn create_content_descriptor<T: JsonSchema>( &mut self, name: &str, summary: Option<String>, description: Option<String>, required: bool, ) -> ContentDescriptor
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RpcModuleDocBuilder
impl !RefUnwindSafe for RpcModuleDocBuilder
impl !Send for RpcModuleDocBuilder
impl !Sync for RpcModuleDocBuilder
impl Unpin for RpcModuleDocBuilder
impl !UnwindSafe for RpcModuleDocBuilder
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more