pub struct AntiPattern {
pub pattern_type: String,
pub severity: String,
pub location: String,
pub description: String,
pub suggestion: String,
pub example: Option<String>,
}Expand description
Detected anti-pattern in API design
Fields§
§pattern_type: StringType of anti-pattern (e.g., “rest_violation”, “inconsistent_naming”, “poor_resource_modeling”)
severity: StringSeverity: “low”, “medium”, “high”, “critical”
location: StringLocation in schema (path, endpoint, etc.)
description: StringDescription of the issue
suggestion: StringSuggested fix
example: Option<String>Example of the problem
Trait Implementations§
Source§impl Clone for AntiPattern
impl Clone for AntiPattern
Source§fn clone(&self) -> AntiPattern
fn clone(&self) -> AntiPattern
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 moreSource§impl Debug for AntiPattern
impl Debug for AntiPattern
Source§impl<'de> Deserialize<'de> for AntiPattern
impl<'de> Deserialize<'de> for AntiPattern
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<AntiPattern, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<AntiPattern, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for AntiPattern
impl Serialize for AntiPattern
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for AntiPattern
impl RefUnwindSafe for AntiPattern
impl Send for AntiPattern
impl Sync for AntiPattern
impl Unpin for AntiPattern
impl UnsafeUnpin for AntiPattern
impl UnwindSafe for AntiPattern
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