pub struct AuditLogEntry {Show 19 fields
pub id: String,
pub request_id: String,
pub timestamp: String,
pub user_email: String,
pub client_id: String,
pub tenant_id: String,
pub request_type: String,
pub query_summary: String,
pub success: bool,
pub blocked: bool,
pub risk_score: f64,
pub provider: String,
pub model: String,
pub tokens_used: i64,
pub latency_ms: i64,
pub policy_violations: Vec<String>,
pub metadata: Option<HashMap<String, Value>>,
pub data_residency: Option<String>,
pub transfer_basis: Option<String>,
}Expand description
A single audit log entry from the platform.
Fields§
§id: String§request_id: String§timestamp: String§user_email: String§client_id: String§tenant_id: String§request_type: String§query_summary: String§success: bool§blocked: bool§risk_score: f64§provider: String§model: String§tokens_used: i64§latency_ms: i64§policy_violations: Vec<String>§metadata: Option<HashMap<String, Value>>§data_residency: Option<String>§transfer_basis: Option<String>Cross-border transfer legal basis under Indonesia UU PDP Pasal 56:
adequacy, safeguards, pasal_56b_dpa, or consent. Surfaced
verbatim — never auto-translated. See the transfer_basis module
constants for the recognized set. The field stays an Option<String>
so the SDK never rejects a value a newer platform may add.
Trait Implementations§
Source§impl Clone for AuditLogEntry
impl Clone for AuditLogEntry
Source§fn clone(&self) -> AuditLogEntry
fn clone(&self) -> AuditLogEntry
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 AuditLogEntry
impl Debug for AuditLogEntry
Source§impl Default for AuditLogEntry
impl Default for AuditLogEntry
Source§fn default() -> AuditLogEntry
fn default() -> AuditLogEntry
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for AuditLogEntrywhere
AuditLogEntry: Default,
impl<'de> Deserialize<'de> for AuditLogEntrywhere
AuditLogEntry: 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 AuditLogEntry
impl RefUnwindSafe for AuditLogEntry
impl Send for AuditLogEntry
impl Sync for AuditLogEntry
impl Unpin for AuditLogEntry
impl UnsafeUnpin for AuditLogEntry
impl UnwindSafe for AuditLogEntry
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