pub struct Admin {
pub id: EntityId,
pub name: String,
pub email: Option<String>,
pub role: String,
pub is_super: bool,
pub last_login: Option<DateTime<Utc>>,
}Expand description
Admin user (from Session cmd/sitemgr).
Fields§
§id: EntityId§name: String§email: Option<String>§role: StringRole: “admin”, “readonly”, “custom”
is_super: bool§last_login: Option<DateTime<Utc>>Trait Implementations§
Source§impl<'de> Deserialize<'de> for Admin
impl<'de> Deserialize<'de> for Admin
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 Admin
impl RefUnwindSafe for Admin
impl Send for Admin
impl Sync for Admin
impl Unpin for Admin
impl UnsafeUnpin for Admin
impl UnwindSafe for Admin
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