DbEvent

Struct DbEvent 

Source
pub struct DbEvent {
Show 18 fields pub id: OwnedEventId, pub sn: i64, pub ty: String, pub room_id: OwnedRoomId, pub depth: i64, pub topological_ordering: i64, pub stream_ordering: i64, pub unrecognized_keys: Option<String>, pub origin_server_ts: Option<UnixMillis>, pub received_at: Option<i64>, pub sender_id: Option<OwnedUserId>, pub contains_url: bool, pub worker_id: Option<String>, pub state_key: Option<String>, pub is_outlier: bool, pub is_redacted: bool, pub soft_failed: bool, pub rejection_reason: Option<String>,
}

Fields§

§id: OwnedEventId§sn: i64§ty: String§room_id: OwnedRoomId§depth: i64§topological_ordering: i64§stream_ordering: i64§unrecognized_keys: Option<String>§origin_server_ts: Option<UnixMillis>§received_at: Option<i64>§sender_id: Option<OwnedUserId>§contains_url: bool§worker_id: Option<String>§state_key: Option<String>§is_outlier: bool§is_redacted: bool§soft_failed: bool§rejection_reason: Option<String>

Trait Implementations§

Source§

impl Clone for DbEvent

Source§

fn clone(&self) -> DbEvent

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for DbEvent

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl HasTable for DbEvent

Source§

type Table = table

The table this type is associated with.
Source§

fn table() -> <Self as HasTable>::Table

Returns the table this type is associated with.
Source§

impl<'ident> Identifiable for &'ident DbEvent

Source§

type Id = &'ident OwnedEventId

The type of this struct’s identifier. Read more
Source§

fn id(self) -> <Self as Identifiable>::Id

Returns the identifier for this record. Read more
Source§

impl<'insert> Insertable<table> for &'insert DbEvent

Source§

type Values = <(Option<Grouped<Eq<id, <&'insert OwnedEventId as AsExpression<<id as Expression>::SqlType>>::Expression>>>, Option<Grouped<Eq<sn, <&'insert i64 as AsExpression<<sn as Expression>::SqlType>>::Expression>>>, Option<Grouped<Eq<ty, <&'insert String as AsExpression<<ty as Expression>::SqlType>>::Expression>>>, Option<Grouped<Eq<room_id, <&'insert OwnedRoomId as AsExpression<<room_id as Expression>::SqlType>>::Expression>>>, Option<Grouped<Eq<depth, <&'insert i64 as AsExpression<<depth as Expression>::SqlType>>::Expression>>>, Option<Grouped<Eq<topological_ordering, <&'insert i64 as AsExpression<<topological_ordering as Expression>::SqlType>>::Expression>>>, Option<Grouped<Eq<stream_ordering, <&'insert i64 as AsExpression<<stream_ordering as Expression>::SqlType>>::Expression>>>, Option<Grouped<Eq<unrecognized_keys, <&'insert String as AsExpression<<unrecognized_keys as Expression>::SqlType>>::Expression>>>, Option<Grouped<Eq<origin_server_ts, <&'insert UnixMillis as AsExpression<<origin_server_ts as Expression>::SqlType>>::Expression>>>, Option<Grouped<Eq<received_at, <&'insert i64 as AsExpression<<received_at as Expression>::SqlType>>::Expression>>>, Option<Grouped<Eq<sender_id, <&'insert OwnedUserId as AsExpression<<sender_id as Expression>::SqlType>>::Expression>>>, Option<Grouped<Eq<contains_url, <&'insert bool as AsExpression<<contains_url as Expression>::SqlType>>::Expression>>>, Option<Grouped<Eq<worker_id, <&'insert String as AsExpression<<worker_id as Expression>::SqlType>>::Expression>>>, Option<Grouped<Eq<state_key, <&'insert String as AsExpression<<state_key as Expression>::SqlType>>::Expression>>>, Option<Grouped<Eq<is_outlier, <&'insert bool as AsExpression<<is_outlier as Expression>::SqlType>>::Expression>>>, Option<Grouped<Eq<is_redacted, <&'insert bool as AsExpression<<is_redacted as Expression>::SqlType>>::Expression>>>, Option<Grouped<Eq<soft_failed, <&'insert bool as AsExpression<<soft_failed as Expression>::SqlType>>::Expression>>>, Option<Grouped<Eq<rejection_reason, <&'insert String as AsExpression<<rejection_reason as Expression>::SqlType>>::Expression>>>) as Insertable<table>>::Values

The VALUES clause to insert these records Read more
Source§

fn values( self, ) -> <(Option<Eq<id, &'insert OwnedEventId>>, Option<Eq<sn, &'insert i64>>, Option<Eq<ty, &'insert String>>, Option<Eq<room_id, &'insert OwnedRoomId>>, Option<Eq<depth, &'insert i64>>, Option<Eq<topological_ordering, &'insert i64>>, Option<Eq<stream_ordering, &'insert i64>>, Option<Eq<unrecognized_keys, &'insert String>>, Option<Eq<origin_server_ts, &'insert UnixMillis>>, Option<Eq<received_at, &'insert i64>>, Option<Eq<sender_id, &'insert OwnedUserId>>, Option<Eq<contains_url, &'insert bool>>, Option<Eq<worker_id, &'insert String>>, Option<Eq<state_key, &'insert String>>, Option<Eq<is_outlier, &'insert bool>>, Option<Eq<is_redacted, &'insert bool>>, Option<Eq<soft_failed, &'insert bool>>, Option<Eq<rejection_reason, &'insert String>>) as Insertable<table>>::Values

Construct Self::Values Read more
Source§

fn insert_into(self, table: T) -> InsertStatement<T, Self::Values>
where T: Table, Self: Sized,

Insert self into a given table. Read more
Source§

impl Insertable<table> for DbEvent

Source§

type Values = <(Option<Grouped<Eq<id, <OwnedEventId as AsExpression<<id as Expression>::SqlType>>::Expression>>>, Option<Grouped<Eq<sn, <i64 as AsExpression<<sn as Expression>::SqlType>>::Expression>>>, Option<Grouped<Eq<ty, <String as AsExpression<<ty as Expression>::SqlType>>::Expression>>>, Option<Grouped<Eq<room_id, <OwnedRoomId as AsExpression<<room_id as Expression>::SqlType>>::Expression>>>, Option<Grouped<Eq<depth, <i64 as AsExpression<<depth as Expression>::SqlType>>::Expression>>>, Option<Grouped<Eq<topological_ordering, <i64 as AsExpression<<topological_ordering as Expression>::SqlType>>::Expression>>>, Option<Grouped<Eq<stream_ordering, <i64 as AsExpression<<stream_ordering as Expression>::SqlType>>::Expression>>>, Option<Grouped<Eq<unrecognized_keys, <String as AsExpression<<unrecognized_keys as Expression>::SqlType>>::Expression>>>, Option<Grouped<Eq<origin_server_ts, <UnixMillis as AsExpression<<origin_server_ts as Expression>::SqlType>>::Expression>>>, Option<Grouped<Eq<received_at, <i64 as AsExpression<<received_at as Expression>::SqlType>>::Expression>>>, Option<Grouped<Eq<sender_id, <OwnedUserId as AsExpression<<sender_id as Expression>::SqlType>>::Expression>>>, Option<Grouped<Eq<contains_url, <bool as AsExpression<<contains_url as Expression>::SqlType>>::Expression>>>, Option<Grouped<Eq<worker_id, <String as AsExpression<<worker_id as Expression>::SqlType>>::Expression>>>, Option<Grouped<Eq<state_key, <String as AsExpression<<state_key as Expression>::SqlType>>::Expression>>>, Option<Grouped<Eq<is_outlier, <bool as AsExpression<<is_outlier as Expression>::SqlType>>::Expression>>>, Option<Grouped<Eq<is_redacted, <bool as AsExpression<<is_redacted as Expression>::SqlType>>::Expression>>>, Option<Grouped<Eq<soft_failed, <bool as AsExpression<<soft_failed as Expression>::SqlType>>::Expression>>>, Option<Grouped<Eq<rejection_reason, <String as AsExpression<<rejection_reason as Expression>::SqlType>>::Expression>>>) as Insertable<table>>::Values

The VALUES clause to insert these records Read more
Source§

fn values( self, ) -> <(Option<Eq<id, OwnedEventId>>, Option<Eq<sn, i64>>, Option<Eq<ty, String>>, Option<Eq<room_id, OwnedRoomId>>, Option<Eq<depth, i64>>, Option<Eq<topological_ordering, i64>>, Option<Eq<stream_ordering, i64>>, Option<Eq<unrecognized_keys, String>>, Option<Eq<origin_server_ts, UnixMillis>>, Option<Eq<received_at, i64>>, Option<Eq<sender_id, OwnedUserId>>, Option<Eq<contains_url, bool>>, Option<Eq<worker_id, String>>, Option<Eq<state_key, String>>, Option<Eq<is_outlier, bool>>, Option<Eq<is_redacted, bool>>, Option<Eq<soft_failed, bool>>, Option<Eq<rejection_reason, String>>) as Insertable<table>>::Values

Construct Self::Values Read more
Source§

fn insert_into(self, table: T) -> InsertStatement<T, Self::Values>
where T: Table, Self: Sized,

Insert self into a given table. Read more
Source§

impl<__DB: Backend, __ST0, __ST1, __ST2, __ST3, __ST4, __ST5, __ST6, __ST7, __ST8, __ST9, __ST10, __ST11, __ST12, __ST13, __ST14, __ST15, __ST16, __ST17> Queryable<(__ST0, __ST1, __ST2, __ST3, __ST4, __ST5, __ST6, __ST7, __ST8, __ST9, __ST10, __ST11, __ST12, __ST13, __ST14, __ST15, __ST16, __ST17), __DB> for DbEvent

Source§

impl UndecoratedInsertRecord<table> for DbEvent

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, W> HasTypeWitness<W> for T
where W: MakeTypeWitness<Arg = T>, T: ?Sized,

Source§

const WITNESS: W = W::MAKE

A constant of the type witness
Source§

impl<T> Identity for T
where T: ?Sized,

Source§

const TYPE_EQ: TypeEq<T, <T as Identity>::Type> = TypeEq::NEW

Proof that Self is the same type as Self::Type, provides methods for casting between Self and Self::Type.
Source§

type Type = T

The same type as Self, used to emulate type equality bounds (T == U) with associated type equality constraints (T: Identity<Type = U>).
Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

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 more
Source§

impl<T> IntoSql for T

Source§

fn into_sql<T>(self) -> Self::Expression

Convert self to an expression for Diesel’s query builder. Read more
Source§

fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expression
where &'a Self: AsExpression<T>, T: SqlType + TypedExpressionType,

Convert &self to an expression for Diesel’s query builder. Read more
Source§

impl<T> Pointable for T

Source§

const ALIGN: usize

The alignment of pointer.
Source§

type Init = T

The type for initializers.
Source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
Source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
Source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
Source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

impl<T> PolicyExt for T
where T: ?Sized,

Source§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow only if self and other return Action::Follow. Read more
Source§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow if either self or other returns Action::Follow. Read more
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, ST, DB> StaticallySizedRow<ST, DB> for T
where ST: SqlTypeOrSelectable + TupleSize, T: Queryable<ST, DB>, DB: Backend,

Source§

const FIELD_COUNT: usize = <ST as crate::util::TupleSize>::SIZE

The number of fields that this type will consume.
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

impl<T> ErasedDestructor for T
where T: 'static,