pub type FindUserResponse = User;Aliased Type§
pub struct FindUserResponse {
pub id: String,
pub username: String,
pub enabled: bool,
pub admin: bool,
pub create_server_permissions: bool,
pub create_build_permissions: bool,
pub config: UserConfig,
pub last_update_view: i64,
pub recents: HashMap<ResourceTargetVariant, Vec<String>>,
pub all: HashMap<ResourceTargetVariant, PermissionLevel>,
pub updated_at: i64,
}Fields§
§id: StringThe Mongo ID of the User.
This field is de/serialized from/to JSON as
{ "_id": { "$oid": "..." }, ...(rest of User schema) }
username: StringThe globally unique username for the user.
enabled: boolWhether user is enabled / able to access the api.
admin: boolWhether the user has global admin permissions.
create_server_permissions: boolWhether the user has permission to create servers.
create_build_permissions: boolWhether the user has permission to create builds
config: UserConfigThe user-type specific config.
last_update_view: i64When the user last opened updates dropdown.
recents: HashMap<ResourceTargetVariant, Vec<String>>Recently viewed ids
all: HashMap<ResourceTargetVariant, PermissionLevel>Give the user elevated permissions on all resources of a certain type
updated_at: i64