pub struct LibraryDef {
pub id: String,
pub version: Option<String>,
pub hash: Option<String>,
pub source_span: Option<Span>,
pub unknown_props: BTreeMap<String, UnknownProperty>,
}Expand description
A single library declaration within a libraries block — one imported
external package.
Fields§
§id: StringThe imported package identifier, e.g. “@acme/brand-kit”. Required.
version: Option<String>Declared package version, e.g. “1.4.0”. Optional (a lockfile/external tool may fill it).
hash: Option<String>Content hash / lock string, e.g. “sha256-…”. Optional; preserved for external integrity checking (the engine round-trips it but does not fetch/verify package content).
source_span: Option<Span>Source declaration span, when available.
unknown_props: BTreeMap<String, UnknownProperty>Forward-compat: unrecognized attributes preserved with typed values + annotations.
Trait Implementations§
Source§impl Clone for LibraryDef
impl Clone for LibraryDef
Source§fn clone(&self) -> LibraryDef
fn clone(&self) -> LibraryDef
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for LibraryDef
impl Debug for LibraryDef
Source§impl PartialEq for LibraryDef
impl PartialEq for LibraryDef
Source§fn eq(&self, other: &LibraryDef) -> bool
fn eq(&self, other: &LibraryDef) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for LibraryDef
Auto Trait Implementations§
impl Freeze for LibraryDef
impl RefUnwindSafe for LibraryDef
impl Send for LibraryDef
impl Sync for LibraryDef
impl Unpin for LibraryDef
impl UnsafeUnpin for LibraryDef
impl UnwindSafe for LibraryDef
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