pub struct ManifestWithNameAndSource {
pub name: String,
pub manifest: Manifest,
pub source: String,
}Expand description
A Manifest enriched with the tool’s identifying name and the
source it was loaded from. Same shape and ordering convention
as filesystem::plugins::ManifestWithNameAndSource.
Fields§
§name: StringThe tool’s identifier — the <name> segment of its
tools/<owner>/<name>/<version>/ directory.
manifest: Manifest§source: StringWhere this manifest came from — typically an absolute filesystem path. Free-form string; the host just displays it.
Implementations§
Source§impl ManifestWithNameAndSource
impl ManifestWithNameAndSource
Sourcepub fn tool_name(&self) -> String
pub fn tool_name(&self) -> String
LLM-visible tool name. See Manifest::tool_name — this
helper supplies the name field automatically.
Trait Implementations§
Source§impl Clone for ManifestWithNameAndSource
impl Clone for ManifestWithNameAndSource
Source§fn clone(&self) -> ManifestWithNameAndSource
fn clone(&self) -> ManifestWithNameAndSource
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 ManifestWithNameAndSource
impl Debug for ManifestWithNameAndSource
Source§impl<'de> Deserialize<'de> for ManifestWithNameAndSource
impl<'de> Deserialize<'de> for ManifestWithNameAndSource
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 From<ManifestWithNameAndSource> for ResponseManifest
impl From<ManifestWithNameAndSource> for ResponseManifest
Source§fn from(m: ManifestWithNameAndSource) -> Self
fn from(m: ManifestWithNameAndSource) -> Self
Converts to this type from the input type.
Source§impl JsonSchema for ManifestWithNameAndSource
impl JsonSchema for ManifestWithNameAndSource
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 ManifestWithNameAndSource
impl PartialEq for ManifestWithNameAndSource
Source§fn eq(&self, other: &ManifestWithNameAndSource) -> bool
fn eq(&self, other: &ManifestWithNameAndSource) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ManifestWithNameAndSource
Auto Trait Implementations§
impl Freeze for ManifestWithNameAndSource
impl RefUnwindSafe for ManifestWithNameAndSource
impl Send for ManifestWithNameAndSource
impl Sync for ManifestWithNameAndSource
impl Unpin for ManifestWithNameAndSource
impl UnsafeUnpin for ManifestWithNameAndSource
impl UnwindSafe for ManifestWithNameAndSource
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