Struct bot_sslime::model::db::MessageRecord
source · pub struct MessageRecord {
pub id: String,
pub channel_id: String,
pub content: String,
pub created_at: NaiveDateTime,
}
Fields§
§id: String
§channel_id: String
§content: String
§created_at: NaiveDateTime
Trait Implementations§
source§impl Debug for MessageRecord
impl Debug for MessageRecord
source§impl From<&Message> for MessageRecord
impl From<&Message> for MessageRecord
source§impl<'a, R: Row> FromRow<'a, R> for MessageRecordwhere
&'a str: ColumnIndex<R>,
String: Decode<'a, R::Database> + Type<R::Database>,
NaiveDateTime: Decode<'a, R::Database> + Type<R::Database>,
impl<'a, R: Row> FromRow<'a, R> for MessageRecordwhere
&'a str: ColumnIndex<R>,
String: Decode<'a, R::Database> + Type<R::Database>,
NaiveDateTime: Decode<'a, R::Database> + Type<R::Database>,
Auto Trait Implementations§
impl Freeze for MessageRecord
impl RefUnwindSafe for MessageRecord
impl Send for MessageRecord
impl Sync for MessageRecord
impl Unpin for MessageRecord
impl UnwindSafe for MessageRecord
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
§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>
§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.