pub struct ChimesUserRoles {Show 25 fields
pub user_id: Option<i64>,
pub dept_id: Option<i64>,
pub company_id: Option<i64>,
pub company_code: Option<String>,
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 is_admin: Option<bool>,
pub open_id: Option<String>,
pub union_id: Option<String>,
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 profile: Option<ChimeProfileInfo>,
pub roles: Vec<ChimesRoleInfo>,
}
Fields§
§user_id: Option<i64>
§dept_id: Option<i64>
§company_id: Option<i64>
§company_code: Option<String>
§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>
§is_admin: Option<bool>
§open_id: Option<String>
§union_id: Option<String>
§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>
§profile: Option<ChimeProfileInfo>
§roles: Vec<ChimesRoleInfo>
Implementations§
Source§impl ChimesUserRoles
impl ChimesUserRoles
pub fn from_user(param: &ChimesUserInfo) -> Self
pub fn to_user(&self) -> ChimesUserInfo
pub async fn find_user_by_role( rb: &Rbatis, role_name: &str, ) -> Result<Vec<ChimesUserInfo>, Error>
pub async fn load(rb: &Rbatis, user_id: &i64) -> 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 ChimesUserRoles
impl Clone for ChimesUserRoles
Source§fn clone(&self) -> ChimesUserRoles
fn clone(&self) -> ChimesUserRoles
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 ChimesUserRoles
impl Debug for ChimesUserRoles
Source§impl Default for ChimesUserRoles
impl Default for ChimesUserRoles
Source§fn default() -> ChimesUserRoles
fn default() -> ChimesUserRoles
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ChimesUserRoles
impl<'de> Deserialize<'de> for ChimesUserRoles
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 ChimesUserRoles
impl RefUnwindSafe for ChimesUserRoles
impl Send for ChimesUserRoles
impl Sync for ChimesUserRoles
impl Unpin for ChimesUserRoles
impl UnwindSafe for ChimesUserRoles
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