pub struct AuditResponse {
pub window: AuditWindow,
pub records: Vec<AuditEntry>,
pub record_count: usize,
pub per_route: BTreeMap<String, usize>,
pub backend_status: String,
}Expand description
Response from GET /v1/audit. Mirrors the App-side AuditResponse in
cleanlib-app::verbs. See AuditEntry for the CLEANLIB-366 field-name
alignment note.
backend_status is "wired" when the App has an AuditReader attached
and the read succeeded, "not_wired" when no reader is configured, or
"read_error" when the reader errored. CLI callers surface this signal
so customers can distinguish “empty because no rows” from “empty because
the audit backend is offline”.
Fields§
§window: AuditWindow§records: Vec<AuditEntry>§record_count: usize§per_route: BTreeMap<String, usize>§backend_status: StringTrait Implementations§
Source§impl Clone for AuditResponse
impl Clone for AuditResponse
Source§fn clone(&self) -> AuditResponse
fn clone(&self) -> AuditResponse
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 AuditResponse
impl Debug for AuditResponse
Source§impl Default for AuditResponse
impl Default for AuditResponse
Source§fn default() -> AuditResponse
fn default() -> AuditResponse
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for AuditResponsewhere
AuditResponse: Default,
impl<'de> Deserialize<'de> for AuditResponsewhere
AuditResponse: Default,
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 AuditResponse
impl RefUnwindSafe for AuditResponse
impl Send for AuditResponse
impl Sync for AuditResponse
impl Unpin for AuditResponse
impl UnsafeUnpin for AuditResponse
impl UnwindSafe for AuditResponse
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