pub enum OrganizationRole {
Owner,
Admin,
Member,
}Variants§
Owner
Everything, the owners’ own roles included; an organization keeps at least one.
Admin
Invites, changes roles and removes members, other than owners.
Member
Implementations§
Source§impl OrganizationRole
impl OrganizationRole
pub fn manages_members(self) -> bool
Trait Implementations§
Source§impl Cast for OrganizationRole
impl Cast for OrganizationRole
const COLUMNS: &'static [ColumnSpec]
fn encode(&self, out: &mut Vec<SqlValue>)
fn decode(row: &mut dyn ColumnReader) -> Result<Self>
const NULLABLE: bool = false
Source§const SENSITIVE: bool = false
const SENSITIVE: bool = false
A field holding it is never filtered, sorted, listed or searched, as
#[sensitive] ones.Source§const MOVES: Option<fn(&Self) -> Option<&'static Targets>> = None
const MOVES: Option<fn(&Self) -> Option<&'static Targets>> = None
Set for a value moving between listed states; a save of any other value skips the check.
Source§const HOLDS_STATES: bool
const HOLDS_STATES: bool
Set when a state anywhere in the value is checked on save, as a field’s of several.
fn refuse_unlisted_move( field: &str, stored: &Self, current: &Self, ) -> Result<(), Error>
Source§impl Clone for OrganizationRole
impl Clone for OrganizationRole
impl Copy for OrganizationRole
Source§impl Debug for OrganizationRole
impl Debug for OrganizationRole
Source§impl<'de> Deserialize<'de> for OrganizationRole
impl<'de> Deserialize<'de> for OrganizationRole
Source§fn deserialize<SofieDeserializer: Deserializer<'de>>(
deserializer: SofieDeserializer,
) -> Result<Self, SofieDeserializer::Error>
fn deserialize<SofieDeserializer: Deserializer<'de>>( deserializer: SofieDeserializer, ) -> Result<Self, SofieDeserializer::Error>
Deserialize this value from the given Serde deserializer. Read more
impl Eq for OrganizationRole
Source§impl PartialEq for OrganizationRole
impl PartialEq for OrganizationRole
Source§impl Present for OrganizationRole
impl Present for OrganizationRole
Source§impl Serialize for OrganizationRole
impl Serialize for OrganizationRole
impl StructuralPartialEq for OrganizationRole
Source§impl Variants for OrganizationRole
impl Variants for OrganizationRole
const TYPE: &'static str = "OrganizationRole"
Source§const PATH: &'static str = "sofie_tenancy::organization::OrganizationRole"
const PATH: &'static str = "sofie_tenancy::organization::OrganizationRole"
Module-qualified, so two enums of one name keep their recorded moves apart.
const VARIANTS: &'static [(&'static str, Self)]
const TRANSITIONS: &'static [(Self, Self)]
fn name(self) -> &'static str
Auto Trait Implementations§
impl Forget for OrganizationRole
impl Freeze for OrganizationRole
impl RefUnwindSafe for OrganizationRole
impl Send for OrganizationRole
impl Sync for OrganizationRole
impl Unpin for OrganizationRole
impl UnsafeUnpin for OrganizationRole
impl UnwindSafe for OrganizationRole
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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.