pub trait Metadata: Send + Sync {
// Required methods
fn name(&self) -> &str;
fn description(&self) -> Option<&str>;
fn repository(&self) -> Option<&str>;
fn documentation(&self) -> Option<&str>;
fn latest_version(&self) -> &str;
fn as_any(&self) -> &dyn Any;
}Expand description
Package metadata trait.
Used for completion items and hover documentation.
Required Methods§
Sourcefn description(&self) -> Option<&str>
fn description(&self) -> Option<&str>
Short description (optional).
Sourcefn repository(&self) -> Option<&str>
fn repository(&self) -> Option<&str>
Repository URL (optional).
Sourcefn documentation(&self) -> Option<&str>
fn documentation(&self) -> Option<&str>
Documentation URL (optional).
Sourcefn latest_version(&self) -> &str
fn latest_version(&self) -> &str
Latest stable version.