pub struct MethodMetadata {
pub name: String,
pub description: String,
pub parameters: Option<Value>,
pub returns: Option<Value>,
pub is_notification: bool,
}Expand description
Method metadata
Contains information about a registered method including its description, parameters, and capabilities.
Fields§
§name: String§description: String§parameters: Option<Value>§returns: Option<Value>§is_notification: boolTrait Implementations§
Source§impl Clone for MethodMetadata
impl Clone for MethodMetadata
Source§fn clone(&self) -> MethodMetadata
fn clone(&self) -> MethodMetadata
Returns a duplicate of the value. Read more
1.0.0 · 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 MethodMetadata
impl RefUnwindSafe for MethodMetadata
impl Send for MethodMetadata
impl Sync for MethodMetadata
impl Unpin for MethodMetadata
impl UnsafeUnpin for MethodMetadata
impl UnwindSafe for MethodMetadata
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