pub enum Resolved<'a> {
Object(&'a Object),
Answer {
capability: &'a Capability,
resource: &'a McpResource,
value: Value,
},
}Expand description
What a majordomus:// URI names, resolved through the registry. This is the one rule
objects.get and the MCP resources/read share, so that the tool, the HTTP route and
the resource cannot answer one URI differently.
Variants§
Object(&'a Object)
A declarative object of the layer, as the index holds it.
Answer
A query with a resource exposure (REPOSITORY_URI), executed through the
executor like any other call.
Fields
§
capability: &'a CapabilityThe capability that answered.
§
resource: &'a McpResourceThe resource exposure the URI matched.
Implementations§
Source§impl Resolved<'_>
impl Resolved<'_>
Sourcepub fn media_type(&self) -> String
pub fn media_type(&self) -> String
IANA media type of Resolved::text: the object’s, or application/json.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Resolved<'a>
impl<'a> RefUnwindSafe for Resolved<'a>
impl<'a> Send for Resolved<'a>
impl<'a> Sync for Resolved<'a>
impl<'a> Unpin for Resolved<'a>
impl<'a> UnsafeUnpin for Resolved<'a>
impl<'a> UnwindSafe for Resolved<'a>
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