pub struct LockPackage {
pub raw: Map<String, Value>,
}Fields§
§raw: Map<String, Value>Implementations§
Source§impl LockPackage
impl LockPackage
pub fn name(&self) -> &str
pub fn version(&self) -> &str
Sourcepub fn package_type(&self) -> &str
pub fn package_type(&self) -> &str
Package type, Composer default: “library”.
pub fn dist_url(&self) -> Option<&str>
pub fn dist_reference(&self) -> Option<&str>
Sourcepub fn dist_shasum(&self) -> Option<&str>
pub fn dist_shasum(&self) -> Option<&str>
sha1 shasum of the dist if non-empty (often empty on Packagist).
pub fn dist_kind(&self) -> DistKind
Sourcepub fn target_dir(&self) -> Option<&str>
pub fn target_dir(&self) -> Option<&str>
target-dir (legacy PSR-0): the package installs into
vendor/
Sourcepub fn install_subpath(&self) -> String
pub fn install_subpath(&self) -> String
Install path relative to vendor/ (name or name/target-dir).
pub fn is_metapackage(&self) -> bool
pub fn bins(&self) -> Vec<&str>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for LockPackage
impl RefUnwindSafe for LockPackage
impl Send for LockPackage
impl Sync for LockPackage
impl Unpin for LockPackage
impl UnsafeUnpin for LockPackage
impl UnwindSafe for LockPackage
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