Struct backend::db::user::Model [−][src]
pub struct Model {
pub uid: i64,
pub username: String,
pub password: String,
pub email: String,
pub create_time: DateTimeWithTimeZone,
pub salt: String,
}
Fields
uid: i64
username: String
password: String
email: String
create_time: DateTimeWithTimeZone
salt: String
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