#[repr(i32)]pub enum UserGroup {
Undefined = 0,
System = 1,
Administrator = 3,
Operator = 7,
Guest = 2_147_483_647,
}
Expand description
Available user groups.
Group determines an access level of the user. Users can belong to one group: Administrator, Operator or Guest. System is reserved for internal motorcortex-core use. By default Operator cannot read or write Administrator’s related parameters. The administrator has a full access to the Operator’s data.
Group access can be reconfigured in C++ server code or in the server configuration file. Furthermore, parameterization of the access can be done by setting permission level (Permission) of the parameter.
Variants§
Undefined = 0
System = 1
System group has full access. It is not available for the users.
Administrator = 3
Administrator group has full access, except for system-level parameters.
Operator = 7
Operator has limited write access and read access.
Guest = 2_147_483_647
Guest has read access.
Implementations§
Source§impl UserGroup
impl UserGroup
Sourcepub fn as_str_name(&self) -> &'static str
pub fn as_str_name(&self) -> &'static str
String value of the enum field names used in the ProtoBuf definition.
The values are not transformed in any way and thus are considered stable (if the ProtoBuf definition does not change) and safe for programmatic use.
Sourcepub fn from_str_name(value: &str) -> Option<Self>
pub fn from_str_name(value: &str) -> Option<Self>
Creates an enum from field names used in the ProtoBuf definition.