pub struct PackageJson {
pub name: String,
pub version: String,
pub lsd_module: Option<LsdModule>,
pub lsd_components: Option<String>,
pub lsd_contexts: Option<HashMap<String, String>>,
pub lsd_import_paths: Option<HashMap<String, String>>,
pub lsd_base_path: Option<String>,
}Expand description
Parsed package.json with CJS-specific fields.
Fields§
§name: String§version: String§lsd_module: Option<LsdModule>lsd:module — can be true (auto-expand) or a string IRI.
lsd_components: Option<String>lsd:components — relative path to components.jsonld
lsd_contexts: Option<HashMap<String, String>>lsd:contexts — map of context IRI → relative path
lsd_import_paths: Option<HashMap<String, String>>lsd:importPaths — map of IRI prefix → relative path
lsd_base_path: Option<String>lsd:basePath — optional base path prefix
Trait Implementations§
Source§impl Clone for PackageJson
impl Clone for PackageJson
Source§fn clone(&self) -> PackageJson
fn clone(&self) -> PackageJson
Returns a duplicate of the value. Read more
1.0.0 · 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 PackageJson
impl Debug for PackageJson
Source§impl<'de> Deserialize<'de> for PackageJson
impl<'de> Deserialize<'de> for PackageJson
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for PackageJson
impl RefUnwindSafe for PackageJson
impl Send for PackageJson
impl Sync for PackageJson
impl Unpin for PackageJson
impl UnsafeUnpin for PackageJson
impl UnwindSafe for PackageJson
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