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).
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
Source§fn clone(&self) -> LockPackage
fn clone(&self) -> LockPackage
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 moreAuto 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
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> ⓘ
Converts
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> ⓘ
Converts
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