pub struct Filter {
pub user_id: Option<i64>,
pub event: Option<String>,
pub model_type: Option<String>,
pub from: Option<String>,
pub to: Option<String>,
pub ip_address: Option<String>,
pub search: Option<String>,
}Expand description
What to narrow a listing by. Every field is optional and they combine with AND, which is what the filter bar on an audit page does.
Fields§
§user_id: Option<i64>§event: Option<String>§model_type: Option<String>§from: Option<String>Inclusive, as YYYY-MM-DD.
to: Option<String>Inclusive: the whole of that day, not the midnight at the start of it.
ip_address: Option<String>§search: Option<String>Matched against the description, the event and the actor’s name.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Filter
impl RefUnwindSafe for Filter
impl Send for Filter
impl Sync for Filter
impl Unpin for Filter
impl UnsafeUnpin for Filter
impl UnwindSafe for Filter
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