Struct minerva_data::syslog::NewLog
source · [−]pub struct NewLog {
pub service: String,
pub requestor: String,
pub entity: String,
pub operation: OpType,
pub datetime: DateTime<Utc>,
pub description: Option<String>,
}
Expand description
DTO for adding a new entry on the syslog
table.
Fields
service: String
Name of the service performing the operation.
requestor: String
Username of whom is requesting the operation.
entity: String
Name of the entity being manipulated, usually the same as a table.
operation: OpType
Operation being performed.
datetime: DateTime<Utc>
Date and time of the operation being performed.
description: Option<String>
Optional description of the operation being performed.
Trait Implementations
sourceimpl<'insert> Insertable<table> for &'insert NewLog
impl<'insert> Insertable<table> for &'insert NewLog
type Values = <(Option<Eq<service, <&'insert String as AsExpression<<service as Expression>::SqlType>>::Expression>>, Option<Eq<requestor, <&'insert String as AsExpression<<requestor as Expression>::SqlType>>::Expression>>, Option<Eq<entity, <&'insert String as AsExpression<<entity as Expression>::SqlType>>::Expression>>, Option<Eq<operation, <&'insert OpType as AsExpression<<operation as Expression>::SqlType>>::Expression>>, Option<Eq<datetime, <&'insert DateTime<Utc> as AsExpression<<datetime as Expression>::SqlType>>::Expression>>, Option<Eq<description, <&'insert String as AsExpression<<description as Expression>::SqlType>>::Expression>>) as Insertable<table>>::Values
type Values = <(Option<Eq<service, <&'insert String as AsExpression<<service as Expression>::SqlType>>::Expression>>, Option<Eq<requestor, <&'insert String as AsExpression<<requestor as Expression>::SqlType>>::Expression>>, Option<Eq<entity, <&'insert String as AsExpression<<entity as Expression>::SqlType>>::Expression>>, Option<Eq<operation, <&'insert OpType as AsExpression<<operation as Expression>::SqlType>>::Expression>>, Option<Eq<datetime, <&'insert DateTime<Utc> as AsExpression<<datetime as Expression>::SqlType>>::Expression>>, Option<Eq<description, <&'insert String as AsExpression<<description as Expression>::SqlType>>::Expression>>) as Insertable<table>>::Values
The
VALUES
clause to insert these records Read morefn insert_into(
self,
table: T
) -> InsertStatement<T, Self::Values, Insert, NoReturningClause>
fn insert_into(
self,
table: T
) -> InsertStatement<T, Self::Values, Insert, NoReturningClause>
Insert
self
into a given table. Read moresourceimpl<'insert> Insertable<table> for NewLog
impl<'insert> Insertable<table> for NewLog
type Values = <(Option<Eq<service, <String as AsExpression<<service as Expression>::SqlType>>::Expression>>, Option<Eq<requestor, <String as AsExpression<<requestor as Expression>::SqlType>>::Expression>>, Option<Eq<entity, <String as AsExpression<<entity as Expression>::SqlType>>::Expression>>, Option<Eq<operation, <OpType as AsExpression<<operation as Expression>::SqlType>>::Expression>>, Option<Eq<datetime, <DateTime<Utc> as AsExpression<<datetime as Expression>::SqlType>>::Expression>>, Option<Eq<description, <String as AsExpression<<description as Expression>::SqlType>>::Expression>>) as Insertable<table>>::Values
type Values = <(Option<Eq<service, <String as AsExpression<<service as Expression>::SqlType>>::Expression>>, Option<Eq<requestor, <String as AsExpression<<requestor as Expression>::SqlType>>::Expression>>, Option<Eq<entity, <String as AsExpression<<entity as Expression>::SqlType>>::Expression>>, Option<Eq<operation, <OpType as AsExpression<<operation as Expression>::SqlType>>::Expression>>, Option<Eq<datetime, <DateTime<Utc> as AsExpression<<datetime as Expression>::SqlType>>::Expression>>, Option<Eq<description, <String as AsExpression<<description as Expression>::SqlType>>::Expression>>) as Insertable<table>>::Values
The
VALUES
clause to insert these records Read morefn insert_into(
self,
table: T
) -> InsertStatement<T, Self::Values, Insert, NoReturningClause>
fn insert_into(
self,
table: T
) -> InsertStatement<T, Self::Values, Insert, NoReturningClause>
Insert
self
into a given table. Read moreimpl Eq for NewLog
impl StructuralEq for NewLog
impl StructuralPartialEq for NewLog
impl<'insert> UndecoratedInsertRecord<table> for NewLog
Auto Trait Implementations
impl RefUnwindSafe for NewLog
impl Send for NewLog
impl Sync for NewLog
impl Unpin for NewLog
impl UnwindSafe for NewLog
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
impl<T> IntoCollection<T> for T
impl<T> IntoCollection<T> for T
fn into_collection<A>(self) -> SmallVec<A>where
A: Array<Item = T>,
fn into_collection<A>(self) -> SmallVec<A>where
A: Array<Item = T>,
Converts
self
into a collection.fn mapped<U, F, A>(self, f: F) -> SmallVec<A>where
F: FnMut(T) -> U,
A: Array<Item = U>,
sourceimpl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
sourcefn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request