Struct backend::db::burrow::Model [−][src]
pub struct Model {
pub burrow_id: i64,
pub title: String,
pub description: String,
pub uid: i64,
pub burrow_state: i32,
pub post_num: i32,
pub create_time: DateTimeWithTimeZone,
pub update_time: DateTimeWithTimeZone,
pub credit: i32,
pub badge: String,
pub avatar: String,
pub permission: i32,
}
Fields
burrow_id: i64
title: String
description: String
uid: i64
burrow_state: i32
post_num: i32
create_time: DateTimeWithTimeZone
update_time: DateTimeWithTimeZone
credit: i32
badge: String
avatar: String
permission: i32
Trait Implementations
Performs the conversion.
Performs the conversion.
Instantiate a Model from a [QueryResult]
fn from_query_result_optional(
res: &QueryResult,
pre: &str
) -> Result<Option<Self>, DbErr>
fn from_query_result_optional(
res: &QueryResult,
pre: &str
) -> Result<Option<Self>, DbErr>
fn find_by_statement(stmt: Statement) -> SelectorRaw<SelectModel<Self>>
fn find_by_statement(stmt: Statement) -> SelectorRaw<SelectModel<Self>>
Get the [Value] of a column from an Entity
Set the [Value] of a column in an Entity
Find related Models
fn find_linked<L>(&self, l: L) -> Select<<L as Linked>::ToEntity> where
L: Linked<FromEntity = Self::Entity>,
fn find_linked<L>(&self, l: L) -> Select<<L as Linked>::ToEntity> where
L: Linked<FromEntity = Self::Entity>,
Find linked Models
Auto Trait Implementations
impl RefUnwindSafe for Model
impl UnwindSafe for Model
Blanket Implementations
Mutably borrows from an owned value. Read more
pub fn clone_any_send(&self) -> Box<dyn CloneAny + Send + 'static, Global> where
T: Send,
pub fn clone_any_sync(&self) -> Box<dyn CloneAny + Sync + 'static, Global> where
T: Sync,
pub fn into_collection<A>(self) -> SmallVec<A> where
A: Array<Item = T>,
pub fn into_collection<A>(self) -> SmallVec<A> where
A: Array<Item = T>,
Converts self
into a collection.
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more