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>
Sourcepub fn dist_url_expanded(&self) -> Option<String>
pub fn dist_url_expanded(&self) -> Option<String>
Package::getDistUrls: a dist url holding % goes through
ComposerMirror::processUrl — %package%, %version% (normalized),
%reference%, %type% and %prettyVersion% are substituted (a
package repository entry such as
https://host/archive/%prettyVersion%.zip).
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).
Sourcepub fn store_reference(&self) -> Option<String>
pub fn store_reference(&self) -> Option<String>
What identifies the dist’s content in the store: its reference,
or — a tar dist from asset-packagist has none — the sha1 of its
URL, as Composer’s own cache keys it (two URLs for one version must
not share an entry).
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
Sourcepub fn is_virtual(&self, flex_packs: bool) -> bool
pub fn is_virtual(&self, flex_packs: bool) -> bool
Installed nowhere: a metapackage, or a symfony-pack when Flex is
active (its SymfonyPackInstaller extends MetapackageInstaller).
pub fn bins(&self) -> Vec<&str>
Trait Implementations§
Source§impl Clone for LockPackage
impl Clone for LockPackage
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more