Struct backend::db::content_post::Model [−][src]
pub struct Model {Show 13 fields
pub post_id: i64,
pub title: String,
pub burrow_id: i64,
pub create_time: DateTimeWithTimeZone,
pub update_time: DateTimeWithTimeZone,
pub section: String,
pub tag: String,
pub post_len: i32,
pub post_type: i32,
pub post_state: i32,
pub like_num: i32,
pub collection_num: i32,
pub permission: i32,
}
Fields
post_id: i64
title: String
burrow_id: i64
create_time: DateTimeWithTimeZone
update_time: DateTimeWithTimeZone
section: String
tag: String
post_len: i32
post_type: i32
post_state: i32
like_num: i32
collection_num: i32
permission: i32
Trait Implementations
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