pub struct ConfigRoot {
pub env: Option<String>,
pub suffix: Option<String>,
pub default: String,
}Expand description
Where the harness keeps its user-level config, and the variable that moves it.
Fields§
§env: Option<String>Variable that relocates the root (CLAUDE_CONFIG_DIR, CODEX_HOME, …).
suffix: Option<String>Appended to env when it names a parent dir (XDG_CONFIG_HOME + opencode).
default: StringTrait Implementations§
Source§impl Clone for ConfigRoot
impl Clone for ConfigRoot
Source§fn clone(&self) -> ConfigRoot
fn clone(&self) -> ConfigRoot
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 ConfigRoot
impl Debug for ConfigRoot
Source§impl Default for ConfigRoot
impl Default for ConfigRoot
Source§fn default() -> ConfigRoot
fn default() -> ConfigRoot
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ConfigRootwhere
ConfigRoot: Default,
impl<'de> Deserialize<'de> for ConfigRootwhere
ConfigRoot: Default,
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<ConfigRoot, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ConfigRoot, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for ConfigRoot
impl Serialize for ConfigRoot
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for ConfigRoot
impl RefUnwindSafe for ConfigRoot
impl Send for ConfigRoot
impl Sync for ConfigRoot
impl Unpin for ConfigRoot
impl UnsafeUnpin for ConfigRoot
impl UnwindSafe for ConfigRoot
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