pub struct User {Show 16 fields
pub id: UserId,
pub email: String,
pub first_name: String,
pub last_name: String,
pub common_name: Option<String>,
pub is_superuser: bool,
pub is_active: bool,
pub is_qbnewb: bool,
pub date_joined: DateTime<Utc>,
pub last_login: Option<DateTime<Utc>>,
pub group_ids: Vec<GroupId>,
pub locale: Option<String>,
pub google_auth: bool,
pub ldap_auth: bool,
pub login_attributes: Option<Value>,
pub user_group_memberships: Vec<UserGroupMembership>,
}
Expand description
Represents a Metabase user
Fields§
§id: UserId
Unique identifier for the user
email: String
User’s email address
first_name: String
User’s first name
last_name: String
User’s last name
common_name: Option<String>
Common name (usually first_name + last_name)
is_superuser: bool
Whether the user is a superuser
is_active: bool
Whether the user is active
is_qbnewb: bool
Whether the user is a Metabase internal user
date_joined: DateTime<Utc>
When the user joined
last_login: Option<DateTime<Utc>>
Last login time
group_ids: Vec<GroupId>
Groups the user belongs to
locale: Option<String>
User’s locale
google_auth: bool
Google auth enabled
ldap_auth: bool
LDAP auth enabled
login_attributes: Option<Value>
Login attributes (e.g., SAML, LDAP attributes)
user_group_memberships: Vec<UserGroupMembership>
User group membership details
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for User
impl<'de> Deserialize<'de> for User
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
impl StructuralPartialEq for User
Auto Trait Implementations§
impl Freeze for User
impl RefUnwindSafe for User
impl Send for User
impl Sync for User
impl Unpin for User
impl UnwindSafe for User
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