pub struct ChimesUserDetailInfo {Show 26 fields
pub user_id: Option<i64>,
pub dept_id: Option<i64>,
pub username: Option<String>,
pub nick_name: Option<String>,
pub gender: Option<String>,
pub phone: Option<String>,
pub email: Option<String>,
pub area_id: Option<String>,
pub avatar_name: Option<String>,
pub avatar_path: Option<String>,
pub password: Option<String>,
pub open_id: Option<String>,
pub union_id: Option<String>,
pub is_admin: Option<bool>,
pub enabled: Option<bool>,
pub create_by: Option<String>,
pub update_by: Option<String>,
pub data_scope: Option<String>,
pub pwd_reset_time: Option<DateTimeNative>,
pub create_time: Option<DateTimeNative>,
pub update_time: Option<DateTimeNative>,
pub dept: Option<ChimesDeptInfo>,
pub roles: Vec<ChimesRoleInfo>,
pub jobs: Vec<ChimesJobInfo>,
pub company_code: Option<String>,
pub company_id: Option<i64>,
}
Fields§
§user_id: Option<i64>
§dept_id: Option<i64>
§username: Option<String>
§nick_name: Option<String>
§gender: Option<String>
§phone: Option<String>
§email: Option<String>
§area_id: Option<String>
§avatar_name: Option<String>
§avatar_path: Option<String>
§password: Option<String>
§open_id: Option<String>
§union_id: Option<String>
§is_admin: Option<bool>
§enabled: Option<bool>
§create_by: Option<String>
§update_by: Option<String>
§data_scope: Option<String>
§pwd_reset_time: Option<DateTimeNative>
§create_time: Option<DateTimeNative>
§update_time: Option<DateTimeNative>
§dept: Option<ChimesDeptInfo>
§roles: Vec<ChimesRoleInfo>
§jobs: Vec<ChimesJobInfo>
§company_code: Option<String>
§company_id: Option<i64>
Implementations§
Source§impl ChimesUserDetailInfo
impl ChimesUserDetailInfo
pub fn from_user(param: &ChimesUserInfo) -> Self
pub fn from_account(param: &ChimesCompanyAccountInfo) -> Self
pub fn to_user(&self) -> ChimesUserInfo
pub async fn load(rb: &Rbatis, user_id: &i64) -> Result<Option<Self>, Error>
pub async fn load_openid( rb: &Rbatis, open_id: &str, ) -> Result<Option<Self>, Error>
pub async fn load_username( rb: &Rbatis, username: &String, company_code: &Option<String>, ) -> Result<Option<Self>, Error>
pub async fn save(&self, rb: &Rbatis) -> Result<bool, Error>
pub async fn remove(&self, rb: &Rbatis) -> Result<bool, Error>
Trait Implementations§
Source§impl Clone for ChimesUserDetailInfo
impl Clone for ChimesUserDetailInfo
Source§fn clone(&self) -> ChimesUserDetailInfo
fn clone(&self) -> ChimesUserDetailInfo
Returns a copy 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 ChimesUserDetailInfo
impl Debug for ChimesUserDetailInfo
Source§impl Default for ChimesUserDetailInfo
impl Default for ChimesUserDetailInfo
Source§fn default() -> ChimesUserDetailInfo
fn default() -> ChimesUserDetailInfo
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ChimesUserDetailInfo
impl<'de> Deserialize<'de> for ChimesUserDetailInfo
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
Auto Trait Implementations§
impl Freeze for ChimesUserDetailInfo
impl RefUnwindSafe for ChimesUserDetailInfo
impl Send for ChimesUserDetailInfo
impl Sync for ChimesUserDetailInfo
impl Unpin for ChimesUserDetailInfo
impl UnwindSafe for ChimesUserDetailInfo
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