pub struct ResponseManifest {
pub owner: String,
pub name: String,
pub version: String,
pub description: String,
pub exec: Exec,
}Expand description
Wire response for tools get — a lean projection of the on-disk
manifest. exec is required (a tool always has a command). The
on-disk-only fields (cli_zip, source) are intentionally absent;
the CLI owns the full on-disk shape in its own filesystem::tools
manifest types.
Fields§
§owner: String§name: String§version: String§description: String§exec: ExecImplementations§
Trait Implementations§
Source§impl Clone for ResponseManifest
impl Clone for ResponseManifest
Source§fn clone(&self) -> ResponseManifest
fn clone(&self) -> ResponseManifest
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 CommandResponse for ResponseManifest
Available on crate feature mcp only.
impl CommandResponse for ResponseManifest
Available on crate feature
mcp only.fn into_mcp(self) -> McpResponseItem
Source§impl Debug for ResponseManifest
impl Debug for ResponseManifest
Source§impl<'de> Deserialize<'de> for ResponseManifest
impl<'de> Deserialize<'de> for ResponseManifest
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
Source§impl JsonSchema for ResponseManifest
impl JsonSchema for ResponseManifest
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 ResponseManifest
impl PartialEq for ResponseManifest
Source§fn eq(&self, other: &ResponseManifest) -> bool
fn eq(&self, other: &ResponseManifest) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ResponseManifest
impl Serialize for ResponseManifest
impl StructuralPartialEq for ResponseManifest
Auto Trait Implementations§
impl Freeze for ResponseManifest
impl RefUnwindSafe for ResponseManifest
impl Send for ResponseManifest
impl Sync for ResponseManifest
impl Unpin for ResponseManifest
impl UnsafeUnpin for ResponseManifest
impl UnwindSafe for ResponseManifest
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more