pub struct DriftGitOpsHandler { /* private fields */ }๐Deprecated:
Will be extracted to mockforge-contracts crate
Expand description
GitOps handler for drift budget violations
Implementationsยง
Sourceยงimpl DriftGitOpsHandler
impl DriftGitOpsHandler
Sourcepub fn new(config: DriftGitOpsConfig) -> Result<Self>
๐Deprecated: Will be extracted to mockforge-contracts crate
pub fn new(config: DriftGitOpsConfig) -> Result<Self>
Will be extracted to mockforge-contracts crate
Create a new drift GitOps handler
Sourcepub async fn generate_pr_from_incidents(
&self,
incidents: &[DriftIncident],
) -> Result<Option<PRResult>>
๐Deprecated: Will be extracted to mockforge-contracts crate
pub async fn generate_pr_from_incidents( &self, incidents: &[DriftIncident], ) -> Result<Option<PRResult>>
Will be extracted to mockforge-contracts crate
Generate a PR from drift incidents
This method processes drift incidents and generates a PR with:
- Updated OpenAPI specs (if corrections are available)
- Updated fixture files
- Optionally regenerated client SDKs
- Optionally test execution
Auto Trait Implementationsยง
impl Freeze for DriftGitOpsHandler
impl !RefUnwindSafe for DriftGitOpsHandler
impl Send for DriftGitOpsHandler
impl Sync for DriftGitOpsHandler
impl Unpin for DriftGitOpsHandler
impl UnsafeUnpin for DriftGitOpsHandler
impl !UnwindSafe for DriftGitOpsHandler
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> Instrument for T
impl<T> Instrument for T
Sourceยงfn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Sourceยงfn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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>
Converts
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>
Converts
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