pub struct RpcService {
pub name: String,
pub methods: Vec<RpcMethod>,
}
Expand description
rpc_service definition
Fields§
§name: String
Service name
methods: Vec<RpcMethod>
List of service methods
Implementations§
Source§impl RpcService
impl RpcService
Sourcepub fn as_rpc_method_defines(&self) -> RpcMethodDefines<'_>
pub fn as_rpc_method_defines(&self) -> RpcMethodDefines<'_>
Gets formatter to generate RPC method defines which are upper case constants corresponding to RPC method name.
Trait Implementations§
Source§impl Clone for RpcService
impl Clone for RpcService
Source§fn clone(&self) -> RpcService
fn clone(&self) -> RpcService
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for RpcService
impl Debug for RpcService
Source§impl PartialEq for RpcService
impl PartialEq for RpcService
impl Eq for RpcService
impl StructuralPartialEq for RpcService
Auto Trait Implementations§
impl Freeze for RpcService
impl RefUnwindSafe for RpcService
impl Send for RpcService
impl Sync for RpcService
impl Unpin for RpcService
impl UnwindSafe for RpcService
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