Struct gchdb::Record[][src]

pub struct Record {
    pub id: Option<i32>,
    pub chat_type: String,
    pub owner_id: String,
    pub group_id: String,
    pub sender_id: String,
    pub sender_name: String,
    pub content: String,
    pub timestamp: i64,
    pub metadata: Option<Vec<u8>>,
}

Fields

id: Option<i32>chat_type: Stringowner_id: Stringgroup_id: Stringsender_id: Stringsender_name: Stringcontent: Stringtimestamp: i64metadata: Option<Vec<u8>>

Implementations

impl Record[src]

pub fn get_id(&self) -> i32[src]

pub fn display(&self) -> String[src]

Trait Implementations

impl Clone for Record[src]

impl Debug for Record[src]

impl Default for Record[src]

impl<'de> Deserialize<'de> for Record[src]

impl<'a> From<&'a Record> for RecordType<'a>[src]

impl From<Record> for RecordType<'_>[src]

impl PartialEq<Record> for Record[src]

impl<__DB: Backend, __ST> Queryable<__ST, __DB> for Record where
    (Option<i32>, String, String, String, String, String, String, i64, Option<Vec<u8>>): Queryable<__ST, __DB>, 
[src]

type Row = <(Option<i32>, String, String, String, String, String, String, i64, Option<Vec<u8>>) as Queryable<__ST, __DB>>::Row

The Rust type you’d like to map from. Read more

impl Serialize for Record[src]

impl StructuralPartialEq for Record[src]

Auto Trait Implementations

impl RefUnwindSafe for Record

impl Send for Record

impl Sync for Record

impl Unpin for Record

impl UnwindSafe for Record

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> Downcast for T where
    T: Any

impl<T> DowncastSync for T where
    T: Send + Sync + Any

impl<T> From<T> for T[src]

impl<T> Fruit for T where
    T: Send + Downcast, 
[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> IntoSql for T[src]

impl<T> Pointable for T

type Init = T

The type for initializers.

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

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