Enum minerva_data::syslog::OpType
source · [−]pub enum OpType {
Insert,
Update,
Delete,
}
Expand description
Enumeration for the type of operation registered on syslog
.
Variants
Insert
Operation for inserting new entities.
Update
Operation for updating entities.
Delete
Operation for removing entities.
Trait Implementations
sourceimpl<'a> AsExpression<Nullable<Op_type>> for &'a OpType
impl<'a> AsExpression<Nullable<Op_type>> for &'a OpType
type Expression = Bound<Nullable<Op_type>, &'a OpType>
type Expression = Bound<Nullable<Op_type>, &'a OpType>
The expression being returned
sourcefn as_expression(self) -> Self::Expression
fn as_expression(self) -> Self::Expression
Perform the conversion
sourceimpl AsExpression<Nullable<Op_type>> for OpType
impl AsExpression<Nullable<Op_type>> for OpType
type Expression = Bound<Nullable<Op_type>, OpType>
type Expression = Bound<Nullable<Op_type>, OpType>
The expression being returned
sourcefn as_expression(self) -> Self::Expression
fn as_expression(self) -> Self::Expression
Perform the conversion
sourceimpl<'a> AsExpression<Op_type> for &'a OpType
impl<'a> AsExpression<Op_type> for &'a OpType
type Expression = Bound<Op_type, &'a OpType>
type Expression = Bound<Op_type, &'a OpType>
The expression being returned
sourcefn as_expression(self) -> Self::Expression
fn as_expression(self) -> Self::Expression
Perform the conversion
sourceimpl AsExpression<Op_type> for OpType
impl AsExpression<Op_type> for OpType
type Expression = Bound<Op_type, OpType>
type Expression = Bound<Op_type, OpType>
The expression being returned
sourcefn as_expression(self) -> Self::Expression
fn as_expression(self) -> Self::Expression
Perform the conversion
sourceimpl FromSqlRow<Op_type, Pg> for OpType
impl FromSqlRow<Op_type, Pg> for OpType
sourcefn build_from_row<T: Row<Pg>>(row: &mut T) -> Result<Self>
fn build_from_row<T: Row<Pg>>(row: &mut T) -> Result<Self>
See the trait documentation.
const FIELDS_NEEDED: usize = 1usize
const FIELDS_NEEDED: usize = 1usize
The number of fields that this type will consume. Must be equal to
the number of times you would call
row.take()
in build_from_row
Read moreimpl Copy for OpType
impl Eq for OpType
impl StructuralEq for OpType
impl StructuralPartialEq for OpType
Auto Trait Implementations
impl RefUnwindSafe for OpType
impl Send for OpType
impl Sync for OpType
impl Unpin for OpType
impl UnwindSafe for OpType
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