pub struct PluginMetadata {
pub description: &'static str,
pub version: &'static str,
pub author: &'static str,
pub author_url: &'static str,
pub email: &'static str,
pub repository: &'static str,
pub help_url: &'static str,
pub bug_report_url: &'static str,
pub license: &'static str,
pub official: bool,
}Expand description
2026-09-26: Authorship and support links for one plugin.
Fields§
§description: &'static str2026-09-26: One line: what the plugin is.
version: &'static str2026-09-26: The plugin’s version. First-party plugins carry the crate version.
2026-09-26: The author’s home on the web. Empty when there is none.
email: &'static str§repository: &'static str§help_url: &'static str2026-09-26: Documentation for this plugin specifically.
bug_report_url: &'static str§license: &'static str§official: bool2026-09-26: True for plugins shipped inside Metrale Engine itself.
It drives the TUI’s origin badge, a trust signal. First-party plugins
get it from PluginMetadata::metrale; anything built with
PluginMetadata::third_party cannot set it.
Implementations§
Source§impl PluginMetadata
impl PluginMetadata
Sourcepub const fn metrale(description: &'static str) -> Self
pub const fn metrale(description: &'static str) -> Self
2026-09-26: A first-party Metrale Engine plugin. Every field except the description is the same for all of them, so this is the one place they are written.
Sourcepub const fn third_party(
description: &'static str,
version: &'static str,
author: &'static str,
author_url: &'static str,
email: &'static str,
repository: &'static str,
help_url: &'static str,
bug_report_url: &'static str,
license: &'static str,
) -> Self
pub const fn third_party( description: &'static str, version: &'static str, author: &'static str, author_url: &'static str, email: &'static str, repository: &'static str, help_url: &'static str, bug_report_url: &'static str, license: &'static str, ) -> Self
2026-09-26: A plugin from outside the Metrale Engine tree. official
is forced false.
Trait Implementations§
Source§impl Clone for PluginMetadata
impl Clone for PluginMetadata
Source§fn clone(&self) -> PluginMetadata
fn clone(&self) -> PluginMetadata
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for PluginMetadata
impl Debug for PluginMetadata
Source§impl PartialEq for PluginMetadata
impl PartialEq for PluginMetadata
impl Copy for PluginMetadata
impl Eq for PluginMetadata
impl StructuralPartialEq for PluginMetadata
Auto Trait Implementations§
impl Freeze for PluginMetadata
impl RefUnwindSafe for PluginMetadata
impl Send for PluginMetadata
impl Sync for PluginMetadata
impl Unpin for PluginMetadata
impl UnwindSafe for PluginMetadata
Blanket Implementations§
§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
§type ArchivedMetadata = ()
type ArchivedMetadata = ()
§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
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,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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