pub struct LocalConfig {
pub schema: u32,
pub active_profiles: Vec<String>,
pub variables: BTreeMap<String, Value>,
pub active_repository: Option<String>,
pub repositories: BTreeMap<String, RepositoryRecord>,
}Fields§
§schema: u32§active_profiles: Vec<String>§variables: BTreeMap<String, Value>§active_repository: Option<String>§repositories: BTreeMap<String, RepositoryRecord>Implementations§
Source§impl LocalConfig
impl LocalConfig
Sourcepub fn load(host: &HostContext) -> Result<Self>
pub fn load(host: &HostContext) -> Result<Self>
No Debug implementation: variable values must not leak through debug logging.
pub fn select_repository(&self, explicit: Option<&Path>) -> Result<PathBuf>
Trait Implementations§
Source§impl Clone for LocalConfig
impl Clone for LocalConfig
Source§impl Default for LocalConfig
impl Default for LocalConfig
Source§impl<'de> Deserialize<'de> for LocalConfig
impl<'de> Deserialize<'de> for LocalConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Forget for LocalConfig
impl Freeze for LocalConfig
impl Move for LocalConfig
impl RefUnwindSafe for LocalConfig
impl Send for LocalConfig
impl Sync for LocalConfig
impl Unpin for LocalConfig
impl UnsafeUnpin for LocalConfig
impl UnwindSafe for LocalConfig
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