pub struct LibraryMetadata<EntryPoint> {
pub name: String,
pub version: Option<String>,
pub documentation: String,
pub entry_point: EntryPoint,
}Expand description
Metadata about a library.
The metadata is typically extracted from a library’s manifest file (e.g., package.json, Cargo.toml).
Fields§
§name: StringThe name of the library as specified in its manifest
version: Option<String>The version of the library, if specified in its manifest
documentation: StringDocumentation string for the library, typically extracted from its manifest or documentation files
entry_point: EntryPointThe entry point(s) for the library.
Whilst this is typically a single path (e.g. Rust’s src/lib.rs), some languages/frameworks
may have multiple entry points, such as TypeScript’s exports directive in package.json.
Trait Implementations§
Auto Trait Implementations§
impl<EntryPoint> Freeze for LibraryMetadata<EntryPoint>where
EntryPoint: Freeze,
impl<EntryPoint> RefUnwindSafe for LibraryMetadata<EntryPoint>where
EntryPoint: RefUnwindSafe,
impl<EntryPoint> Send for LibraryMetadata<EntryPoint>where
EntryPoint: Send,
impl<EntryPoint> Sync for LibraryMetadata<EntryPoint>where
EntryPoint: Sync,
impl<EntryPoint> Unpin for LibraryMetadata<EntryPoint>where
EntryPoint: Unpin,
impl<EntryPoint> UnwindSafe for LibraryMetadata<EntryPoint>where
EntryPoint: UnwindSafe,
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