pub struct ServerConformanceViolation {
pub timestamp: DateTime<Utc>,
pub method: String,
pub path: String,
pub client_ip: String,
pub status: u16,
pub reason: String,
pub category: String,
}Expand description
A single server-side conformance violation captured at the OpenAPI
router. Mirrors ConformanceViolation semantics from the bench-side
client validator so consumers can use the same dashboards.
Fields§
§timestamp: DateTime<Utc>When the request was rejected.
method: StringHTTP method (uppercase).
path: StringSpec-template path the request matched (e.g. /users/{id}).
client_ip: StringClient IP if available, else "unknown".
status: u16HTTP status the server replied with (typically 400 or 422).
reason: StringShort, human-readable reason — derived from the validator error.
category: StringSpec category the violation falls into ("parameters",
"request-body", "headers", etc.). Empty if the validator
couldn’t classify.
Trait Implementations§
Source§impl Clone for ServerConformanceViolation
impl Clone for ServerConformanceViolation
Source§fn clone(&self) -> ServerConformanceViolation
fn clone(&self) -> ServerConformanceViolation
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 ServerConformanceViolation
impl Debug for ServerConformanceViolation
Source§impl<'de> Deserialize<'de> for ServerConformanceViolation
impl<'de> Deserialize<'de> for ServerConformanceViolation
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for ServerConformanceViolation
impl RefUnwindSafe for ServerConformanceViolation
impl Send for ServerConformanceViolation
impl Sync for ServerConformanceViolation
impl Unpin for ServerConformanceViolation
impl UnsafeUnpin for ServerConformanceViolation
impl UnwindSafe for ServerConformanceViolation
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