pub struct AuditReportRequest {
pub report_type: String,
pub start_date: String,
pub end_date: Option<String>,
pub audit_action: Option<Vec<String>>,
pub action_type: Option<Vec<String>>,
pub target_user_id: Option<Vec<String>>,
pub modifier_user_id: Option<Vec<String>>,
}Expand description
Request payload for generating an audit report
Fields§
§report_type: StringThe type of report to generate (always “AUDIT” for audit logs)
start_date: StringStart date in YYYY-MM-DD format
end_date: Option<String>Optional end date in YYYY-MM-DD format
audit_action: Option<Vec<String>>Optional list of audit actions to filter (e.g., “Delete”, “Create”, “Update”)
action_type: Option<Vec<String>>Optional list of action types to filter (e.g., “Login”, “Admin”)
target_user_id: Option<Vec<String>>Optional list of target user IDs to filter
modifier_user_id: Option<Vec<String>>Optional list of modifier user IDs to filter
Implementations§
Source§impl AuditReportRequest
impl AuditReportRequest
Sourcepub fn new(start_date: impl Into<String>, end_date: Option<String>) -> Self
pub fn new(start_date: impl Into<String>, end_date: Option<String>) -> Self
Create a new audit report request with just start and end dates
Sourcepub fn with_audit_actions(self, actions: Vec<String>) -> Self
pub fn with_audit_actions(self, actions: Vec<String>) -> Self
Add audit action filters
Sourcepub fn with_action_types(self, types: Vec<String>) -> Self
pub fn with_action_types(self, types: Vec<String>) -> Self
Add action type filters
Sourcepub fn with_target_users(self, user_ids: Vec<String>) -> Self
pub fn with_target_users(self, user_ids: Vec<String>) -> Self
Add target user ID filters
Sourcepub fn with_modifier_users(self, user_ids: Vec<String>) -> Self
pub fn with_modifier_users(self, user_ids: Vec<String>) -> Self
Add modifier user ID filters
Trait Implementations§
Source§impl Clone for AuditReportRequest
impl Clone for AuditReportRequest
Source§fn clone(&self) -> AuditReportRequest
fn clone(&self) -> AuditReportRequest
Returns a duplicate of the value. Read more
1.0.0 · 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 AuditReportRequest
impl Debug for AuditReportRequest
Auto Trait Implementations§
impl Freeze for AuditReportRequest
impl RefUnwindSafe for AuditReportRequest
impl Send for AuditReportRequest
impl Sync for AuditReportRequest
impl Unpin for AuditReportRequest
impl UnwindSafe for AuditReportRequest
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