pub struct ApiPatternDetector { /* private fields */ }Expand description
Automated API pattern detector
Implementations§
Source§impl ApiPatternDetector
impl ApiPatternDetector
Sourcepub fn register_pattern(&mut self, pattern: ApiPattern)
pub fn register_pattern(&mut self, pattern: ApiPattern)
Register a new API pattern
Sourcepub fn detect_patterns<T>(&mut self, component: &T) -> Vec<DetectedPattern>where
T: Debug,
pub fn detect_patterns<T>(&mut self, component: &T) -> Vec<DetectedPattern>where
T: Debug,
Detect patterns in a component
Sourcepub fn get_compliance_report(
&self,
component_name: &str,
) -> PatternComplianceReport
pub fn get_compliance_report( &self, component_name: &str, ) -> PatternComplianceReport
Get pattern compliance report
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ApiPatternDetector
impl RefUnwindSafe for ApiPatternDetector
impl Send for ApiPatternDetector
impl Sync for ApiPatternDetector
impl Unpin for ApiPatternDetector
impl UnwindSafe for ApiPatternDetector
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> 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