pub struct Addressed<T> {
pub result: T,
pub resolved_symbol: Option<ResolvedSymbol>,
}Expand description
A tool result together with the symbol its name resolved to, when the call was name-addressed.
Fields§
§result: TThe tool’s own result.
resolved_symbol: Option<ResolvedSymbol>Set only for a name-addressed call.
Trait Implementations§
Source§impl<T> JsonSchema for Addressed<T>where
T: JsonSchema,
impl<T> JsonSchema for Addressed<T>where
T: JsonSchema,
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 moreAuto Trait Implementations§
impl<T> Freeze for Addressed<T>where
T: Freeze,
impl<T> RefUnwindSafe for Addressed<T>where
T: RefUnwindSafe,
impl<T> Send for Addressed<T>where
T: Send,
impl<T> Sync for Addressed<T>where
T: Sync,
impl<T> Unpin for Addressed<T>where
T: Unpin,
impl<T> UnsafeUnpin for Addressed<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for Addressed<T>where
T: UnwindSafe,
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