pub struct ConsumerBreakingChangeDetector { /* private fields */ }Expand description
Detector for consumer-specific breaking changes
Implementations§
Source§impl ConsumerBreakingChangeDetector
impl ConsumerBreakingChangeDetector
Sourcepub fn new(usage_recorder: Arc<UsageRecorder>) -> Self
pub fn new(usage_recorder: Arc<UsageRecorder>) -> Self
Create a new consumer breaking change detector
Sourcepub async fn detect_violations(
&self,
consumer_id: &str,
endpoint: &str,
method: &str,
diff_result: &ContractDiffResult,
incident_id: Option<String>,
) -> Vec<ConsumerViolation>
pub async fn detect_violations( &self, consumer_id: &str, endpoint: &str, method: &str, diff_result: &ContractDiffResult, incident_id: Option<String>, ) -> Vec<ConsumerViolation>
Detect violations for a consumer based on contract diff result
Trait Implementations§
Source§impl Clone for ConsumerBreakingChangeDetector
impl Clone for ConsumerBreakingChangeDetector
Source§fn clone(&self) -> ConsumerBreakingChangeDetector
fn clone(&self) -> ConsumerBreakingChangeDetector
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ConsumerBreakingChangeDetector
impl !RefUnwindSafe for ConsumerBreakingChangeDetector
impl Send for ConsumerBreakingChangeDetector
impl Sync for ConsumerBreakingChangeDetector
impl Unpin for ConsumerBreakingChangeDetector
impl UnsafeUnpin for ConsumerBreakingChangeDetector
impl !UnwindSafe for ConsumerBreakingChangeDetector
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