pub struct ManifestWithNameAndSource {
pub name: String,
pub manifest: Manifest,
pub source: String,
}Expand description
A Manifest enriched with the plugin’s identifying name and
the source it was loaded from. Used when listing or describing
installed plugins, where the bare manifest fields are not enough
to identify which plugin they belong to or where they came from.
name sits before the manifest body; source sits after. The
manifest field is #[serde(flatten)]-ed so the wire shape is
one flat JSON object — serde_json’s preserve_order feature
keeps the declared field order, so consumers see name first
and source last.
Fields§
§name: StringThe plugin’s identifier — the filename it lives under in the
plugins directory (e.g. psyops for ~/.objectiveai/plugins/psyops).
manifest: Manifest§source: StringWhere this manifest came from — e.g. an absolute filesystem path, a URL, or a registry reference. Free-form string; the host just displays it.
Trait Implementations§
Source§impl Clone for ManifestWithNameAndSource
impl Clone for ManifestWithNameAndSource
Source§fn clone(&self) -> ManifestWithNameAndSource
fn clone(&self) -> ManifestWithNameAndSource
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
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>,
Source§impl JsonSchema for ManifestWithNameAndSource
impl JsonSchema for ManifestWithNameAndSource
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
$ref keyword. Read moreAuto 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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>
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>
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