pub enum DocumentOpenTarget {
Address {
address: DocumentAddress,
},
Manual {
name: String,
manual_section: Option<String>,
},
}Expand description
An interactive request to load a local document, not permission to execute it.
An unresolved manual remains explicitly manual-only: a same-named Markdown document must not shadow it, and the UI must not invent a manual section. Fragment validation is performed against the loaded document before the interactive host commits a navigation change. MCP never executes this action.
Variants§
Address
An exact already-qualified local catalog address.
Fields
§
address: DocumentAddressLogical address, never an arbitrary filesystem path.
Manual
A manual topic resolved with manual-only policy by the embedding host.
Trait Implementations§
Source§impl Clone for DocumentOpenTarget
impl Clone for DocumentOpenTarget
Source§fn clone(&self) -> DocumentOpenTarget
fn clone(&self) -> DocumentOpenTarget
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 DocumentOpenTarget
impl Debug for DocumentOpenTarget
Source§impl<'de> Deserialize<'de> for DocumentOpenTarget
impl<'de> Deserialize<'de> for DocumentOpenTarget
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
impl Eq for DocumentOpenTarget
Source§impl From<DocumentAddress> for DocumentOpenTarget
impl From<DocumentAddress> for DocumentOpenTarget
Source§fn from(address: DocumentAddress) -> Self
fn from(address: DocumentAddress) -> Self
Converts to this type from the input type.
Source§impl JsonSchema for DocumentOpenTarget
impl JsonSchema for DocumentOpenTarget
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for DocumentOpenTarget
impl PartialEq for DocumentOpenTarget
Source§impl Serialize for DocumentOpenTarget
impl Serialize for DocumentOpenTarget
impl StructuralPartialEq for DocumentOpenTarget
Auto Trait Implementations§
impl Freeze for DocumentOpenTarget
impl RefUnwindSafe for DocumentOpenTarget
impl Send for DocumentOpenTarget
impl Sync for DocumentOpenTarget
impl Unpin for DocumentOpenTarget
impl UnsafeUnpin for DocumentOpenTarget
impl UnwindSafe for DocumentOpenTarget
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