Skip to main content

Config

Struct Config 

Source
pub struct Config {
Show 14 fields pub worktree_dir: PathBuf, pub worktree_retention_ms: Option<i64>, pub project_dir: PathBuf, pub ticket_dir: PathBuf, pub ticket_source: TicketSourceConfig, pub max_parallel_tasks: usize, pub running_hours: Option<RunningHours>, pub agent: Option<AgentConfig>, pub flows: BTreeMap<String, Flow>, pub default_flow: String, pub aftercare_test_cmd: Option<Vec<String>>, pub ticket_prefix: String, pub project_prefix: String, pub delete_missing_after_ms: i64,
}

Fields§

§worktree_dir: PathBuf§worktree_retention_ms: Option<i64>

How long settled run worktrees remain available. None disables automatic removal.

§project_dir: PathBuf§ticket_dir: PathBuf§ticket_source: TicketSourceConfig§max_parallel_tasks: usize§running_hours: Option<RunningHours>§agent: Option<AgentConfig>

Repository-scoped exec-shaped agent adapters. Absent means the repository has not configured an agent yet; queued work stays queued.

§flows: BTreeMap<String, Flow>

Committed flow definitions plus the built-in default when it is not overridden by a repository file.

§default_flow: String§aftercare_test_cmd: Option<Vec<String>>

The single test aftercare stage: an argv run in the worktree after a successful exit. Absent means the run branch merges without a test gate; an unchanged branch completes as a no-op.

§ticket_prefix: String

Repository-scoped prefixes for durable IDs stamped into committed files. These deliberately do not inherit user defaults.

§project_prefix: String§delete_missing_after_ms: i64

How long a ticket row stays stamped missing after its committed file disappears before reconciliation deletes it.

Implementations§

Source§

impl Config

Source

pub fn validate_client_essentials( repository: &Repository, ) -> Result<(), ConfigError>

Validates only the repository configuration needed before contacting an existing daemon. Runtime policy and authored definitions are owned by the daemon snapshot and must not hold operational verbs hostage.

Source

pub fn load(repository: &Repository) -> Result<Self, ConfigError>

Trait Implementations§

Source§

impl Clone for Config

Source§

fn clone(&self) -> Config

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for Config

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Eq for Config

Source§

impl PartialEq for Config

Source§

fn eq(&self, other: &Config) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for Config

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.