pub struct User {Show 16 fields
pub email: String,
pub username: String,
pub is_admin: bool,
pub name: Option<String>,
pub is_super_admin: bool,
pub created_at: String,
pub operator: bool,
pub role: Option<String>,
pub disabled: bool,
pub groups: Option<Vec<String>>,
pub folders: Vec<String>,
pub folders_read: Vec<String>,
pub folders_owners: Vec<String>,
pub added_via: Option<Option<Box<UserSource>>>,
pub is_service_account: Option<bool>,
pub non_member: Option<bool>,
}Fields§
§email: String§username: String§is_admin: bool§name: Option<String>§is_super_admin: bool§created_at: String§operator: bool§role: Option<String>The member’s workspace role by name (developer, operator or a custom role). Admin is the separate is_admin flag.
disabled: bool§groups: Option<Vec<String>>§folders: Vec<String>§folders_read: Vec<String>§folders_owners: Vec<String>§added_via: Option<Option<Box<UserSource>>>§is_service_account: Option<bool>§non_member: Option<bool>True when this is a superadmin viewing a workspace they are not a member of (is_admin/role reflect the superadmin fallback, not an actual membership).
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 Forget for User
impl Freeze for User
impl RefUnwindSafe for User
impl Send for User
impl Sync for User
impl Unpin for User
impl UnsafeUnpin 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