pub struct MethodInfo {
pub path: String,
pub params: Vec<MethodParam>,
pub return_type: Option<Type>,
pub description: Option<String>,
}Expand description
Metadata describing an available RPC method.
Methods represent callable operations that can be invoked via the Invoke message.
Fields§
§path: StringMethod path/name (e.g., “audio/play”, “animation/trigger”, “reset”)
params: Vec<MethodParam>Method parameters
return_type: Option<Type>Return type (None means void/unit)
description: Option<String>Human-readable description
Trait Implementations§
Source§impl Clone for MethodInfo
impl Clone for MethodInfo
Source§fn clone(&self) -> MethodInfo
fn clone(&self) -> MethodInfo
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 moreSource§impl Debug for MethodInfo
impl Debug for MethodInfo
Source§impl<'de> Deserialize<'de> for MethodInfo
impl<'de> Deserialize<'de> for MethodInfo
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for MethodInfo
impl RefUnwindSafe for MethodInfo
impl Send for MethodInfo
impl Sync for MethodInfo
impl Unpin for MethodInfo
impl UnsafeUnpin for MethodInfo
impl UnwindSafe for MethodInfo
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