pub struct SysDeptResponse {
pub id: BigIntPrimaryKey,
pub parent_id: BigIntPrimaryKey,
pub ancestors: String,
pub dept_name: String,
pub order_num: Option<i64>,
pub leader: Option<String>,
pub phone: Option<String>,
pub email: Option<String>,
pub status: i8,
pub del_flag: Option<String>,
}Fields§
§id: BigIntPrimaryKey§parent_id: BigIntPrimaryKey§ancestors: String§dept_name: String§order_num: Option<i64>§leader: Option<String>§phone: Option<String>§email: Option<String>§status: i8§del_flag: Option<String>Trait Implementations§
Source§impl Clone for SysDeptResponse
impl Clone for SysDeptResponse
Source§fn clone(&self) -> SysDeptResponse
fn clone(&self) -> SysDeptResponse
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SysDeptResponse
impl Debug for SysDeptResponse
Source§impl Default for SysDeptResponse
impl Default for SysDeptResponse
Source§fn default() -> SysDeptResponse
fn default() -> SysDeptResponse
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for SysDeptResponse
impl<'de> Deserialize<'de> for SysDeptResponse
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl FromQueryResult for SysDeptResponse
impl FromQueryResult for SysDeptResponse
Source§fn from_query_result(row: &QueryResult, pre: &str) -> Result<Self, DbErr>
fn from_query_result(row: &QueryResult, pre: &str) -> Result<Self, DbErr>
Instantiate a Model from a QueryResult Read more
Source§fn from_query_result_nullable(
row: &QueryResult,
pre: &str,
) -> Result<Self, TryGetError>
fn from_query_result_nullable( row: &QueryResult, pre: &str, ) -> Result<Self, TryGetError>
Transform the error from instantiating a Model from a QueryResult
and converting it to an Option Read more
Source§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>
Transform the error from instantiating a Model from a QueryResult
and converting it to an Option
Source§fn find_by_statement(stmt: Statement) -> SelectorRaw<SelectModel<Self>>
fn find_by_statement(stmt: Statement) -> SelectorRaw<SelectModel<Self>>
Auto Trait Implementations§
impl Freeze for SysDeptResponse
impl RefUnwindSafe for SysDeptResponse
impl Send for SysDeptResponse
impl Sync for SysDeptResponse
impl Unpin for SysDeptResponse
impl UnsafeUnpin for SysDeptResponse
impl UnwindSafe for SysDeptResponse
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more