pub(crate) struct MethodDef {
pub(crate) schema_name: String,
pub(crate) rust_name: String,
pub(crate) scope: String,
pub(crate) description: String,
pub(crate) service: String,
pub(crate) parent: String,
}Expand description
A method defined in a service’s schema.
Fields§
§schema_name: StringcamelCase name from schema (e.g., “generateStream”)
rust_name: Stringsnake_case name as it appears in Rust code (e.g., “generate_stream”)
scope: StringScope action (query, write, manage, infer, train, etc.)
description: StringHuman description from $mcpDescription
service: StringWhich service this method belongs to
parent: StringParent struct name (e.g., “ModelRequest”, “RepositoryRequest”)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for MethodDef
impl RefUnwindSafe for MethodDef
impl Send for MethodDef
impl Sync for MethodDef
impl Unpin for MethodDef
impl UnsafeUnpin for MethodDef
impl UnwindSafe for MethodDef
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