pub enum AccountType {
Staff,
Manager,
User,
Subscription {
tenant_id: Uuid,
},
RoleAssociated {
tenant_id: Uuid,
role_name: String,
read_role_id: Uuid,
write_role_id: Uuid,
},
ActorAssociated {
actor: SystemActor,
},
TenantManager {
tenant_id: Uuid,
},
}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.
Variants§
Staff
Staff account type
Staff account type is a special account type that is used to represent staff members in the system.
Manager
Manager account type
Manager account type is a special account type that is used to represent managers in the system.
User
User account type
User account type is the default account type for users in the system.
Subscription
Subscription account type
A subscription account is a special account type that is used to represent legal entities that have a subscription to the service.
RoleAssociated
Role associated account type
Role associated account type is an special type of account, created to connect users to a specific standard role in the application.
Fields
ActorAssociated
Actor associated account type
Fields
actor: SystemActorTenantManager
Tenant manager account type
Implementations§
Source§impl AccountType
impl AccountType
pub fn is_tenant_dependent(&self) -> bool
pub fn is_user_account(&self) -> bool
pub fn is_system_default_account(&self) -> bool
Trait Implementations§
Source§impl Clone for AccountType
impl Clone for AccountType
Source§fn clone(&self) -> AccountType
fn clone(&self) -> AccountType
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for AccountType
impl Debug for AccountType
Source§impl<'de> Deserialize<'de> for AccountType
impl<'de> Deserialize<'de> for AccountType
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<AccountType, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<AccountType, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Source§impl PartialEq for AccountType
impl PartialEq for AccountType
Source§impl Serialize for AccountType
impl Serialize for AccountType
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Source§impl ToSchema for AccountType
impl ToSchema for AccountType
Source§impl ToString for AccountType
impl ToString for AccountType
impl Eq for AccountType
impl StructuralPartialEq for AccountType
Auto Trait Implementations§
impl Freeze for AccountType
impl RefUnwindSafe for AccountType
impl Send for AccountType
impl Sync for AccountType
impl Unpin for AccountType
impl UnwindSafe for AccountType
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.