pub struct ChimesRoleMenus {
pub role_id: Option<i64>,
pub name: Option<String>,
pub role_code: Option<String>,
pub level: Option<i32>,
pub description: Option<String>,
pub data_scope: Option<String>,
pub create_by: Option<String>,
pub update_by: Option<String>,
pub create_time: Option<DateTimeNative>,
pub update_time: Option<DateTimeNative>,
pub menus: Vec<ChimesMenuInfo>,
pub permissions: Vec<ChimesPermissionInfo>,
}
Fields§
§role_id: Option<i64>
§name: Option<String>
§role_code: Option<String>
§level: Option<i32>
§description: Option<String>
§data_scope: Option<String>
§create_by: Option<String>
§update_by: Option<String>
§create_time: Option<DateTimeNative>
§update_time: Option<DateTimeNative>
§permissions: Vec<ChimesPermissionInfo>
Implementations§
Source§impl ChimesRoleMenus
impl ChimesRoleMenus
pub fn from_role(param: &ChimesRoleInfo) -> Self
pub fn to_role(&self) -> ChimesRoleInfo
pub async fn load(rb: &Rbatis, role_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 ChimesRoleMenus
impl Clone for ChimesRoleMenus
Source§fn clone(&self) -> ChimesRoleMenus
fn clone(&self) -> ChimesRoleMenus
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 ChimesRoleMenus
impl Debug for ChimesRoleMenus
Source§impl Default for ChimesRoleMenus
impl Default for ChimesRoleMenus
Source§fn default() -> ChimesRoleMenus
fn default() -> ChimesRoleMenus
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ChimesRoleMenus
impl<'de> Deserialize<'de> for ChimesRoleMenus
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 ChimesRoleMenus
impl RefUnwindSafe for ChimesRoleMenus
impl Send for ChimesRoleMenus
impl Sync for ChimesRoleMenus
impl Unpin for ChimesRoleMenus
impl UnwindSafe for ChimesRoleMenus
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