Struct backend::db::user_status::Model [−][src]
pub struct Model {
pub uid: i64,
pub update_time: DateTimeWithTimeZone,
pub user_state: i32,
pub valid_burrow: String,
pub banned_burrow: String,
pub permission: i32,
pub file_capacity: i64,
pub file_num: i32,
}
Fields
uid: i64
update_time: DateTimeWithTimeZone
user_state: i32
valid_burrow: String
banned_burrow: String
permission: i32
file_capacity: i64
file_num: 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