pub struct AdminResponse {
pub userid: String,
pub sys_level: i32,
}
Fields§
§userid: String
管理员的userid
sys_level: i32
管理员角色: 1:主管理员 2:子管理员
Trait Implementations§
Source§impl Debug for AdminResponse
impl Debug for AdminResponse
Source§impl Default for AdminResponse
impl Default for AdminResponse
Source§fn default() -> AdminResponse
fn default() -> AdminResponse
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for AdminResponse
impl<'de> Deserialize<'de> for AdminResponse
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 AdminResponse
impl RefUnwindSafe for AdminResponse
impl Send for AdminResponse
impl Sync for AdminResponse
impl Unpin for AdminResponse
impl UnwindSafe for AdminResponse
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