pub struct Request {
pub locked_repository: Option<Vec<usize>>,
pub requires: OrderedMap<Constraint>,
pub pretty_requires: OrderedMap<String>,
pub fixed_packages: Vec<usize>,
pub locked_packages: Vec<usize>,
pub fixed_locked_packages: Vec<usize>,
pub update_allow_list: Vec<String>,
pub update_mode: Option<UpdateMode>,
pub restricted_packages: Option<Vec<String>>,
}Expand description
Composer\DependencyResolver\Request. Packages are arena indices; the
PHP arrays keyed by spl_object_id become ordered lists without
duplicates.
Fields§
§locked_repository: Option<Vec<usize>>§requires: OrderedMap<Constraint>§pretty_requires: OrderedMap<String>getPrettyString() of each required constraint (the messages).
fixed_packages: Vec<usize>§locked_packages: Vec<usize>§fixed_locked_packages: Vec<usize>§update_allow_list: Vec<String>§update_mode: Option<UpdateMode>§restricted_packages: Option<Vec<String>>Implementations§
Source§impl Request
impl Request
pub fn new(locked_repository: Option<Vec<usize>>) -> Request
pub fn require_name( &mut self, name: &str, constraint: Option<Constraint>, ) -> Result<(), PoolError>
Sourcepub fn require_name_pretty(
&mut self,
name: &str,
constraint: Option<Constraint>,
pretty: &str,
) -> Result<(), PoolError>
pub fn require_name_pretty( &mut self, name: &str, constraint: Option<Constraint>, pretty: &str, ) -> Result<(), PoolError>
requireName with the constraint’s pretty string (^1.0, as
written in composer.json), which only the messages show.
Sourcepub fn pretty_require(&self, name: &str, filtered: &Constraint) -> String
pub fn pretty_require(&self, name: &str, filtered: &Constraint) -> String
The pretty string of a root require after the platform filter:
the original text when the filter kept the constraint, otherwise
the constraint’s own __toString (a filtered constraint has no
pretty string in Composer either).
pub fn fix_package(&mut self, idx: usize)
pub fn lock_package(&mut self, idx: usize)
pub fn fix_locked_package(&mut self, idx: usize)
pub fn unlock_package(&mut self, idx: usize)
pub fn set_update_allow_list(&mut self, list: Vec<String>, mode: UpdateMode)
pub fn update_allow_transitive_dependencies(&self) -> bool
pub fn update_allow_transitive_root_dependencies(&self) -> bool
pub fn is_fixed_package(&self, idx: usize) -> bool
pub fn is_locked_package(&self, idx: usize) -> bool
Sourcepub fn locked_packages_all(&self) -> Vec<usize>
pub fn locked_packages_all(&self) -> Vec<usize>
array_merge($lockedPackages, $fixedLockedPackages).
Sourcepub fn fixed_or_locked_packages(&self) -> Vec<usize>
pub fn fixed_or_locked_packages(&self) -> Vec<usize>
array_merge($fixedPackages, $lockedPackages).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Request
impl RefUnwindSafe for Request
impl Send for Request
impl Sync for Request
impl Unpin for Request
impl UnsafeUnpin for Request
impl UnwindSafe for Request
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