pub trait PackageMetadata {
// 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;
}Expand description
Legacy package metadata trait.
§Deprecation Notice
This trait is deprecated. Use Metadata trait instead.
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.