pub struct GlobalConfig {
pub config_file: String,
pub profile_name: String,
pub no_caching: bool,
pub cluster_domain: String,
pub cluster_domain_source: String,
/* private fields */
}Fields§
§config_file: String§profile_name: String§no_caching: bool§cluster_domain: String§cluster_domain_source: StringImplementations§
Source§impl GlobalConfig
impl GlobalConfig
Sourcepub fn new(embedded_versions: Option<HashMap<String, String>>) -> Self
pub fn new(embedded_versions: Option<HashMap<String, String>>) -> Self
Creates a new GlobalConfig with sensible defaults.
Sourcepub fn get_tool_version(&mut self, key: &str) -> Option<String>
pub fn get_tool_version(&mut self, key: &str) -> Option<String>
Retrieves a tool version from the embedded CI version files.
Sourcepub fn tool_versions(&mut self) -> HashMap<String, String>
pub fn tool_versions(&mut self) -> HashMap<String, String>
Returns a copy of the merged tool versions parsed from the embedded CI version files.
Trait Implementations§
Source§impl Clone for GlobalConfig
impl Clone for GlobalConfig
Source§fn clone(&self) -> GlobalConfig
fn clone(&self) -> GlobalConfig
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 moreSource§impl Debug for GlobalConfig
impl Debug for GlobalConfig
Source§impl Default for GlobalConfig
impl Default for GlobalConfig
Source§fn default() -> GlobalConfig
fn default() -> GlobalConfig
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for GlobalConfig
impl RefUnwindSafe for GlobalConfig
impl Send for GlobalConfig
impl Sync for GlobalConfig
impl Unpin for GlobalConfig
impl UnsafeUnpin for GlobalConfig
impl UnwindSafe for GlobalConfig
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