pub struct PublishMetadata {
pub name: String,
pub version: String,
pub description: Option<String>,
pub repository: Option<String>,
pub homepage: Option<String>,
pub license: Option<String>,
pub keywords: Vec<String>,
pub entry_point: String,
pub dependencies: HashMap<String, String>,
pub readme: Option<String>,
}Expand description
Metadata submitted when publishing a package.
This information is stored in the registry index and displayed on the package’s registry page.
Fields§
§name: StringPackage name (must match Largo.toml).
version: StringSemantic version string (e.g., “1.0.0”).
description: Option<String>Short description of the package.
repository: Option<String>URL to the source repository (e.g., GitHub).
homepage: Option<String>URL to the project homepage or documentation.
license: Option<String>SPDX license identifier (e.g., “MIT”, “Apache-2.0”).
keywords: Vec<String>Searchable keywords for discovery.
entry_point: StringRelative path to the entry point file.
dependencies: HashMap<String, String>Map of dependency names to version requirements.
readme: Option<String>Full README content (if README.md exists).
Trait Implementations§
Source§impl Debug for PublishMetadata
impl Debug for PublishMetadata
Auto Trait Implementations§
impl Freeze for PublishMetadata
impl RefUnwindSafe for PublishMetadata
impl Send for PublishMetadata
impl Sync for PublishMetadata
impl Unpin for PublishMetadata
impl UnwindSafe for PublishMetadata
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