pub struct ConfigText {
pub roots: Vec<RepoPath>,
pub registered: Vec<RepoPath>,
pub declined: BTreeMap<String, Vec<String>>,
pub hook_commands: BTreeMap<String, String>,
pub text: Option<String>,
}Expand description
ConfigText is the configuration as written, for init and the harness
commands: the roots as listed, whether or not each one is a directory,
and the file’s text.
Fields§
§roots: Vec<RepoPath>knowledge.roots as written, or the default when the file is absent.
registered: Vec<RepoPath>The roots of /.sokf/roots.d/ as written, whether or not each one is
a directory.
declined: BTreeMap<String, Vec<String>>The declined parts of each harness, as written.
hook_commands: BTreeMap<String, String>The program each harness’s hook line runs, where one is set.
text: Option<String>The file’s text, or None when the file is absent.
Trait Implementations§
Source§impl Clone for ConfigText
impl Clone for ConfigText
Source§impl Debug for ConfigText
impl Debug for ConfigText
impl Eq for ConfigText
Source§impl PartialEq for ConfigText
impl PartialEq for ConfigText
impl StructuralPartialEq for ConfigText
Auto Trait Implementations§
impl Forget for ConfigText
impl Freeze for ConfigText
impl Move for ConfigText
impl RefUnwindSafe for ConfigText
impl Send for ConfigText
impl Sync for ConfigText
impl Unpin for ConfigText
impl UnsafeUnpin for ConfigText
impl UnwindSafe for ConfigText
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.