pub enum SystemRole {
Show 15 variants
Viewer,
Creator,
Approver,
PaymentReleaser,
BankProcessor,
JournalPoster,
PeriodClose,
Admin,
ApAccountant,
ArAccountant,
Buyer,
Executive,
FinancialAnalyst,
GeneralAccountant,
Custom(String),
}Expand description
System role for access control.
Variants§
Viewer
View-only access
Creator
Can create documents
Approver
Can approve documents
PaymentReleaser
Can release payments
BankProcessor
Can perform bank transactions
JournalPoster
Can post journal entries
PeriodClose
Can perform period close activities
Admin
System administrator
ApAccountant
AP Accountant
ArAccountant
AR Accountant
Buyer
Buyer / Procurement
Executive
Executive / Management
FinancialAnalyst
Financial Analyst
GeneralAccountant
General Accountant
Custom(String)
Custom role with name
Trait Implementations§
Source§impl Clone for SystemRole
impl Clone for SystemRole
Source§fn clone(&self) -> SystemRole
fn clone(&self) -> SystemRole
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SystemRole
impl Debug for SystemRole
Source§impl<'de> Deserialize<'de> for SystemRole
impl<'de> Deserialize<'de> for SystemRole
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Hash for SystemRole
impl Hash for SystemRole
Source§impl PartialEq for SystemRole
impl PartialEq for SystemRole
Source§impl Serialize for SystemRole
impl Serialize for SystemRole
impl Eq for SystemRole
impl StructuralPartialEq for SystemRole
Auto Trait Implementations§
impl Freeze for SystemRole
impl RefUnwindSafe for SystemRole
impl Send for SystemRole
impl Sync for SystemRole
impl Unpin for SystemRole
impl UnwindSafe for SystemRole
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
Mutably borrows from an owned value. Read more
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
Compare self to
key and return true if they are equal.