pub struct MergedConfig {
pub repositories: Vec<RepoConfig>,
pub platform: Map<String, Value>,
pub policy: RawPolicyConfig,
}Expand description
Merged configuration relevant to the resolver.
Fields§
§repositories: Vec<RepoConfig>§platform: Map<String, Value>config.platform (the last definition replaces the previous one).
policy: RawPolicyConfigconfig.policy and config.audit merged (Config::merge).
Implementations§
Source§impl MergedConfig
impl MergedConfig
Sourcepub fn load(
manifest: &Value,
composer_home: Option<&Path>,
) -> Result<MergedConfig, SessionError>
pub fn load( manifest: &Value, composer_home: Option<&Path>, ) -> Result<MergedConfig, SessionError>
Defaults + COMPOSER_HOME/config.json + composer.json, like
Factory::createConfig then Config::merge($localConfig).
Trait Implementations§
Source§impl Clone for MergedConfig
impl Clone for MergedConfig
Source§impl Debug for MergedConfig
impl Debug for MergedConfig
Auto Trait Implementations§
impl Freeze for MergedConfig
impl RefUnwindSafe for MergedConfig
impl Send for MergedConfig
impl Sync for MergedConfig
impl Unpin for MergedConfig
impl UnsafeUnpin for MergedConfig
impl UnwindSafe for MergedConfig
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