Type Alias FindUserResponse

Source
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: String

The Mongo ID of the User. This field is de/serialized from/to JSON as { "_id": { "$oid": "..." }, ...(rest of User schema) }

§username: String

The globally unique username for the user.

§enabled: bool

Whether user is enabled / able to access the api.

§admin: bool

Whether the user has global admin permissions.

§create_server_permissions: bool

Whether the user has permission to create servers.

§create_build_permissions: bool

Whether the user has permission to create builds

§config: UserConfig

The user-type specific config.

§last_update_view: i64

When 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