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 UnsafeUnpin 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
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.