pub struct OrganizationMember { /* private fields */ }Expand description
Removed softly, so the record of who belonged stays.
Implementations§
Source§impl OrganizationMember
impl OrganizationMember
pub const ORGANIZATION: Column<OrganizationMember, OrganizationId>
pub const ACCOUNT: Column<OrganizationMember, AccountId>
pub const ROLE: Column<OrganizationMember, OrganizationRole>
Source§impl OrganizationMember
impl OrganizationMember
pub fn organization(&self) -> OrganizationId
pub fn account(&self) -> AccountId
pub fn role(&self) -> OrganizationRole
Trait Implementations§
Source§impl Aggregate for OrganizationMember
impl Aggregate for OrganizationMember
const NAME: &'static str = "organization_member"
const MODULE: &'static str = "sofie_tenancy"
const FIELDS: &'static [Field]
Source§const UNIQUE: &'static [&'static str]
const UNIQUE: &'static [&'static str]
Fields held unique by the database, answered as their own field errors.
Source§const SENSITIVE: &'static [&'static str]
const SENSITIVE: &'static [&'static str]
#[sensitive] fields, which a list can neither filter nor sort by.const BEHAVIORS: &'static [&'static dyn Behavior]
const CHANGED: Option<&'static str>
const OWNER: Option<&'static str>
const PRUNED: Option<&'static str>
fn owner(&self) -> Option<Uuid>
fn meta(&self) -> &Meta
fn meta_mut(&mut self) -> &mut Meta
fn encode(&self, out: &mut Vec<SqlValue>)
fn decode(loaded: Meta, row: &mut dyn ColumnReader) -> Result<Self>
fn refuse_unlisted_moves(&self, loaded: &mut dyn ColumnReader) -> Result<()>
const ID: Column<Self, Id<Self>> = _
fn id(&self) -> Id<Self>
fn owned_by(owner: Uuid) -> Option<Condition<Self>>
fn exposed_fields(&self) -> Option<Result<Map<String, Value>, Error>>
Source§impl Create for OrganizationMember
impl Create for OrganizationMember
Source§impl<SofieContext: Writes> Resolve<SofieContext> for OrganizationMember
impl<SofieContext: Writes> Resolve<SofieContext> for OrganizationMember
Source§impl Serialize for OrganizationMemberwhere
for<'sofie> OrganizationId: Serialize,
for<'sofie> AccountId: Serialize,
for<'sofie> OrganizationRole: Serialize,
impl Serialize for OrganizationMemberwhere
for<'sofie> OrganizationId: Serialize,
for<'sofie> AccountId: Serialize,
for<'sofie> OrganizationRole: Serialize,
Source§impl Update for OrganizationMember
impl Update for OrganizationMember
impl Uses<SoftDelete> for OrganizationMember
impl Uses<Timestamps> for OrganizationMember
Auto Trait Implementations§
impl Freeze for OrganizationMember
impl RefUnwindSafe for OrganizationMember
impl Send for OrganizationMember
impl Sync for OrganizationMember
impl Unpin for OrganizationMember
impl UnsafeUnpin for OrganizationMember
impl UnwindSafe for OrganizationMember
Blanket Implementations§
Source§impl<O> AnyOutcome for Owhere
O: Outcome,
impl<O> AnyOutcome for Owhere
O: Outcome,
Source§impl<T> AreaPrincipal for Twhere
T: Aggregate,
impl<T> AreaPrincipal for Twhere
T: Aggregate,
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