pub struct AvailableConfigOptions {
pub cli_config: Option<AvailableConfig>,
pub env_config: Option<AvailableConfig>,
pub repo_config: Option<AvailableConfig>,
pub global_config: Option<AvailableConfig>,
pub registries: Vec<RegistryOptions>,
}Fields§
§cli_config: Option<AvailableConfig>§env_config: Option<AvailableConfig>Config built from CW_* environment variables (SRS §4).
repo_config: Option<AvailableConfig>§global_config: Option<AvailableConfig>§registries: Vec<RegistryOptions>Loaded registries (SRS §5). Each entry holds its resolved config.
Implementations§
Source§impl AvailableConfigOptions
impl AvailableConfigOptions
pub fn new() -> Self
pub fn is_empty(&self) -> bool
pub fn has_cli_config(&self) -> bool
pub fn set_cli_config(&mut self, config: AvailableConfig) -> &mut Self
pub fn has_repo_config(&self) -> bool
pub fn set_repo_config(&mut self, config: AvailableConfig) -> &mut Self
pub fn has_global_config(&self) -> bool
pub fn set_global_config(&mut self, config: AvailableConfig) -> &mut Self
pub fn has_registries(&self) -> bool
pub fn registry_count(&self) -> usize
Trait Implementations§
Source§impl Clone for AvailableConfigOptions
impl Clone for AvailableConfigOptions
Source§fn clone(&self) -> AvailableConfigOptions
fn clone(&self) -> AvailableConfigOptions
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AvailableConfigOptions
impl Debug for AvailableConfigOptions
Auto Trait Implementations§
impl Freeze for AvailableConfigOptions
impl RefUnwindSafe for AvailableConfigOptions
impl Send for AvailableConfigOptions
impl Sync for AvailableConfigOptions
impl Unpin for AvailableConfigOptions
impl UnsafeUnpin for AvailableConfigOptions
impl UnwindSafe for AvailableConfigOptions
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