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<'ident> Identifiable for &'ident DbEvent
impl<'ident> Identifiable for &'ident DbEvent
Source§impl<'insert> Insertable<table> for &'insert DbEvent
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
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 moreSource§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
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 moreSource§fn insert_into(self, table: T) -> InsertStatement<T, Self::Values>
fn insert_into(self, table: T) -> InsertStatement<T, Self::Values>
Insert
self into a given table. Read moreSource§impl Insertable<table> for DbEvent
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
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 moreSource§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
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 moreSource§fn insert_into(self, table: T) -> InsertStatement<T, Self::Values>
fn insert_into(self, table: T) -> InsertStatement<T, Self::Values>
Insert
self into a given table. Read moreSource§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 DbEventwhere
(OwnedEventId, i64, String, OwnedRoomId, i64, i64, i64, Option<String>, Option<UnixMillis>, Option<i64>, Option<OwnedUserId>, bool, Option<String>, Option<String>, bool, bool, bool, Option<String>): FromStaticSqlRow<(__ST0, __ST1, __ST2, __ST3, __ST4, __ST5, __ST6, __ST7, __ST8, __ST9, __ST10, __ST11, __ST12, __ST13, __ST14, __ST15, __ST16, __ST17), __DB>,
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 DbEventwhere
(OwnedEventId, i64, String, OwnedRoomId, i64, i64, i64, Option<String>, Option<UnixMillis>, Option<i64>, Option<OwnedUserId>, bool, Option<String>, Option<String>, bool, bool, bool, Option<String>): FromStaticSqlRow<(__ST0, __ST1, __ST2, __ST3, __ST4, __ST5, __ST6, __ST7, __ST8, __ST9, __ST10, __ST11, __ST12, __ST13, __ST14, __ST15, __ST16, __ST17), __DB>,
impl UndecoratedInsertRecord<table> for DbEvent
Auto Trait Implementations§
impl Freeze for DbEvent
impl RefUnwindSafe for DbEvent
impl Send for DbEvent
impl Sync for DbEvent
impl Unpin for DbEvent
impl UnwindSafe for DbEvent
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T, W> HasTypeWitness<W> for Twhere
W: MakeTypeWitness<Arg = T>,
T: ?Sized,
impl<T, W> HasTypeWitness<W> for Twhere
W: MakeTypeWitness<Arg = T>,
T: ?Sized,
Source§impl<T> Identity for Twhere
T: ?Sized,
impl<T> Identity for Twhere
T: ?Sized,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§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> IntoSql for T
impl<T> IntoSql for T
Source§fn into_sql<T>(self) -> Self::Expression
fn into_sql<T>(self) -> Self::Expression
Convert
self to an expression for Diesel’s query builder. Read moreSource§fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expression
fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expression
Convert
&self to an expression for Diesel’s query builder. Read moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T, ST, DB> StaticallySizedRow<ST, DB> for T
impl<T, ST, DB> StaticallySizedRow<ST, DB> for T
Source§const FIELD_COUNT: usize = <ST as crate::util::TupleSize>::SIZE
const FIELD_COUNT: usize = <ST as crate::util::TupleSize>::SIZE
The number of fields that this type will consume.