pub struct RpcMethodDef {
pub name: String,
pub description: String,
}Expand description
Static description of an RPC method (advertised at server start; used
for introspection and folk admin list-methods).
Fields§
§name: StringMethod name, dotted: "http.connections", "jobs.stats".
description: StringHuman-readable description for documentation / admin UIs.
Implementations§
Trait Implementations§
Source§impl Clone for RpcMethodDef
impl Clone for RpcMethodDef
Source§fn clone(&self) -> RpcMethodDef
fn clone(&self) -> RpcMethodDef
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for RpcMethodDef
impl RefUnwindSafe for RpcMethodDef
impl Send for RpcMethodDef
impl Sync for RpcMethodDef
impl Unpin for RpcMethodDef
impl UnsafeUnpin for RpcMethodDef
impl UnwindSafe for RpcMethodDef
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