pub struct Entry {
pub id: i64,
pub user_id: Option<i64>,
pub user_name: Option<String>,
pub event: String,
pub model_type: Option<String>,
pub model_id: Option<String>,
pub description: Option<String>,
pub properties: Json,
pub ip_address: Option<String>,
pub user_agent: Option<String>,
pub created_at: String,
}Expand description
A row in the trail, as it goes in and as it comes back out.
Fields§
§id: i64§user_id: Option<i64>Who did it. None for something the system did on its own, or for an
action taken before signing in — a failed login has no user yet.
user_name: Option<String>Their name at the time, not as it is now.
event: String§model_type: Option<String>§model_id: Option<String>§description: Option<String>§properties: Json§ip_address: Option<String>§user_agent: Option<String>§created_at: StringYYYY-MM-DD HH:MM:SS in UTC, the way the rest of the framework stores
a time: it sorts as text, and all three databases keep it identically.
Implementations§
Trait Implementations§
Source§impl Default for Entry
Json has no Default, and giving one to properties here would be
choosing between “no properties” and “an empty object” for every caller.
Json::Null is the honest one: nothing was recorded.
impl Default for Entry
Json has no Default, and giving one to properties here would be
choosing between “no properties” and “an empty object” for every caller.
Json::Null is the honest one: nothing was recorded.
impl StructuralPartialEq for Entry
Auto Trait Implementations§
impl Freeze for Entry
impl RefUnwindSafe for Entry
impl Send for Entry
impl Sync for Entry
impl Unpin for Entry
impl UnsafeUnpin for Entry
impl UnwindSafe for Entry
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