Struct sui_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 !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