pub struct LicensedResource {
pub acc_id: Uuid,
pub sys_acc: bool,
pub tenant_id: Uuid,
pub acc_name: String,
pub role: String,
pub role_id: Uuid,
pub perm: Permission,
pub verified: bool,
pub permit_flags: Option<Vec<String>>,
pub deny_flags: Option<Vec<String>>,
}Expand description
This is a re-exportation from the myc core to allow users to import both from myc-http-tools instead of the myc-core.
Fields§
§acc_id: UuidThe guest account unique id
This is the unique identifier of the account that is own of the resource to be managed.
sys_acc: boolIf the guest account is a system account
System accounts has permissions to act as special users into the Mycelium system.
tenant_id: UuidThe guest account tenant unique id
This is the unique identifier of the tenant that is own of the resource to be managed.
acc_name: StringThe guest account name
This is the name of the account that is own of the resource to be managed.
role: StringThe guest account role verbose name
This is the verbose name of the role that is own of the resource to be managed.
role_id: UuidThe Guest Role ID
This is the ID of the guest role that is own of the resource to be managed.
perm: PermissionThe guest role permissions
This is the list of permissions that the guest role has.
verified: boolIf the guest account was verified
If the user accepted the invitation to join the account, the account should be verified.
permit_flags: Option<Vec<String>>Permit Flags
This is the list of flags that the guest role has.
Example:
[
"managementScreen",
"clickToActionButton",
]deny_flags: Option<Vec<String>>Deny Flags
This is the list of flags that the guest role does not have.
Example:
[
"dashboardScreen",
"viewTenantUrl",
]Implementations§
Trait Implementations§
Source§impl Clone for LicensedResource
impl Clone for LicensedResource
Source§fn clone(&self) -> LicensedResource
fn clone(&self) -> LicensedResource
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more