pub struct IntegrationConfig {
pub max_attempts: u32,
pub backoff_ms: Vec<u64>,
pub target_branch: String,
pub ci_enabled: bool,
pub ci_label: String,
}Expand description
Configuration for the integration loop.
Fields§
§max_attempts: u32Maximum number of integration attempts.
backoff_ms: Vec<u64>Backoff intervals between retries (in milliseconds).
target_branch: StringTarget branch to push to.
ci_enabled: boolWhether CI gate is enabled.
ci_label: StringRendered CI gate label for prompts and handoff context.
Implementations§
Source§impl IntegrationConfig
impl IntegrationConfig
pub fn from_resolved(resolved: &Resolved, target_branch: &str) -> Self
Sourcepub fn backoff_for_attempt(&self, attempt: usize) -> Duration
pub fn backoff_for_attempt(&self, attempt: usize) -> Duration
Get backoff for a specific attempt index (0-indexed).
Trait Implementations§
Source§impl Clone for IntegrationConfig
impl Clone for IntegrationConfig
Source§fn clone(&self) -> IntegrationConfig
fn clone(&self) -> IntegrationConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for IntegrationConfig
impl RefUnwindSafe for IntegrationConfig
impl Send for IntegrationConfig
impl Sync for IntegrationConfig
impl Unpin for IntegrationConfig
impl UnsafeUnpin for IntegrationConfig
impl UnwindSafe for IntegrationConfig
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