pub struct ScannedModule {
pub module_id: String,
pub description: String,
pub input_schema: Value,
pub output_schema: Value,
pub tags: Vec<String>,
pub target: String,
pub version: String,
pub annotations: Option<ModuleAnnotations>,
pub documentation: Option<String>,
pub examples: Vec<ModuleExample>,
pub metadata: HashMap<String, Value>,
pub warnings: Vec<String>,
}Expand description
Result of scanning a single endpoint.
Fields§
§module_id: StringUnique module identifier (e.g., “users.get_user.get”).
description: StringHuman-readable description for MCP tool listing.
input_schema: ValueJSON Schema dict for module input.
output_schema: ValueJSON Schema dict for module output.
Categorization tags.
target: StringCallable reference in “module.path:callable” format.
version: StringModule version string.
annotations: Option<ModuleAnnotations>Behavioral annotations (readonly, destructive, etc.).
documentation: Option<String>Full docstring text for rich descriptions.
examples: Vec<ModuleExample>Example invocations for documentation and testing.
metadata: HashMap<String, Value>Arbitrary key-value data (e.g., http_method, url_rule).
warnings: Vec<String>Non-fatal issues encountered during scanning.
Implementations§
Trait Implementations§
Source§impl Clone for ScannedModule
impl Clone for ScannedModule
Source§fn clone(&self) -> ScannedModule
fn clone(&self) -> ScannedModule
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 moreSource§impl Debug for ScannedModule
impl Debug for ScannedModule
Source§impl<'de> Deserialize<'de> for ScannedModule
impl<'de> Deserialize<'de> for ScannedModule
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<ScannedModule, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ScannedModule, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for ScannedModule
impl Serialize for ScannedModule
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for ScannedModule
impl RefUnwindSafe for ScannedModule
impl Send for ScannedModule
impl Sync for ScannedModule
impl Unpin for ScannedModule
impl UnsafeUnpin for ScannedModule
impl UnwindSafe for ScannedModule
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