pub struct RiAuditEvent {
pub timestamp: String,
pub event_type: String,
pub user_identifier: Option<String>,
pub ip_address: Option<String>,
pub action: String,
pub resource: Option<String>,
pub success: bool,
pub details: Option<String>,
}Fields§
§timestamp: String§event_type: String§user_identifier: Option<String>§ip_address: Option<String>§action: String§resource: Option<String>§success: bool§details: Option<String>Implementations§
Source§impl RiAuditEvent
impl RiAuditEvent
pub fn new(event_type: &str, action: &str) -> Self
pub fn with_user(self, user: &str) -> Self
pub fn with_ip(self, ip: &str) -> Self
pub fn with_resource(self, resource: &str) -> Self
pub fn with_details(self, details: &str) -> Self
pub fn with_success(self, success: bool) -> Self
Trait Implementations§
Source§impl Clone for RiAuditEvent
impl Clone for RiAuditEvent
Source§fn clone(&self) -> RiAuditEvent
fn clone(&self) -> RiAuditEvent
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 RiAuditEvent
impl Debug for RiAuditEvent
Auto Trait Implementations§
impl Freeze for RiAuditEvent
impl RefUnwindSafe for RiAuditEvent
impl Send for RiAuditEvent
impl Sync for RiAuditEvent
impl Unpin for RiAuditEvent
impl UnsafeUnpin for RiAuditEvent
impl UnwindSafe for RiAuditEvent
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> FitForCBox for T
impl<T> FitForCBox for T
type CBoxWrapped = Box_<T>
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::RequestSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request