pub struct UpdateOptions {
pub allow_list: Vec<String>,
pub transitive: Option<UpdateMode>,
pub no_blocking: bool,
pub root_patch: Option<RootPatch>,
pub merged: Option<Merged>,
pub temporary_requirements: Vec<(String, String)>,
}Expand description
Options of an update (Installer::setUpdateAllowList,
setUpdateAllowTransitiveDependencies).
Fields§
§allow_list: Vec<String>composer update a/b c/*: patterns, lowercased and deduplicated.
transitive: Option<UpdateMode>§no_blocking: bool--no-blocking / --no-security-blocking.
root_patch: Option<RootPatch>Dry run of require/remove: the root package is patched in
memory, composer.json is not touched.
merged: Option<Merged>composer-merge-plugin active: the root as its INIT /
PRE_UPDATE_CMD merges left it (the merged manifest, the
included files’ own requirements for the stability flags).
temporary_requirements: Vec<(String, String)>update --with a/b:^1 (and the update a/b:^1 shorthand), as
written: name → constraint text, in command order. Parsed and
checked against the root requirements by prepare_update.
Implementations§
Source§impl UpdateOptions
impl UpdateOptions
Sourcepub fn partial(packages: &[String], transitive: UpdateMode) -> UpdateOptions
pub fn partial(packages: &[String], transitive: UpdateMode) -> UpdateOptions
Installer::setUpdateAllowList: strtolower + array_unique.
Trait Implementations§
Source§impl Clone for UpdateOptions
impl Clone for UpdateOptions
Source§impl Debug for UpdateOptions
impl Debug for UpdateOptions
Auto Trait Implementations§
impl Freeze for UpdateOptions
impl RefUnwindSafe for UpdateOptions
impl Send for UpdateOptions
impl Sync for UpdateOptions
impl Unpin for UpdateOptions
impl UnsafeUnpin for UpdateOptions
impl UnwindSafe for UpdateOptions
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