pub struct BeadsConfig {
pub mode: BeadsMode,
pub binary: String,
pub workspace: Option<PathBuf>,
pub id_prefix: String,
}Expand description
The [beads] section: how this repository talks to a beads workspace.
The binary and id_prefix are stated rather than inferred so a workspace
that renames its bd binary, or wants its exported rows under a different
prefix, can say so without patching tix.
Fields§
§mode: BeadsModeWhether tix talks to a beads workspace at all, and how.
binary: StringThe binary shelled out to. Default bd.
workspace: Option<PathBuf>The beads workspace to talk to, when it is not the one bd would find.
Set into BEADS_DIR for every bd call, which is beads’ own override.
None means “wherever bd looks”, which is what a beads workspace in
this repository (or in a parent) needs.
id_prefix: StringThe prefix exported rows carry: issue #1705 becomes tix-1705.
Deterministic, which is what makes a re-export upsert rather than duplicate.
Implementations§
Source§impl BeadsConfig
impl BeadsConfig
Sourcepub fn is_default(&self) -> bool
pub fn is_default(&self) -> bool
Whether this section carries nothing worth writing: the default section is
omitted, so a repository that never opted in gains no [beads] key on save
— and an older binary (whose Config is deny_unknown_fields) can still
read the file.
Trait Implementations§
Source§impl Clone for BeadsConfig
impl Clone for BeadsConfig
Source§impl Debug for BeadsConfig
impl Debug for BeadsConfig
Source§impl Default for BeadsConfig
impl Default for BeadsConfig
Source§impl<'de> Deserialize<'de> for BeadsConfigwhere
BeadsConfig: Default,
impl<'de> Deserialize<'de> for BeadsConfigwhere
BeadsConfig: Default,
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>,
impl Eq for BeadsConfig
Source§impl PartialEq for BeadsConfig
impl PartialEq for BeadsConfig
Source§impl Serialize for BeadsConfig
impl Serialize for BeadsConfig
impl StructuralPartialEq for BeadsConfig
Auto Trait Implementations§
impl Freeze for BeadsConfig
impl RefUnwindSafe for BeadsConfig
impl Send for BeadsConfig
impl Sync for BeadsConfig
impl Unpin for BeadsConfig
impl UnsafeUnpin for BeadsConfig
impl UnwindSafe for BeadsConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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
key and return true if they are equal.Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more