pub struct Organization { /* private fields */ }Expand description
Owns itself, as an account does, so its area reaches it and what it owns. Deleted softly, so the records its members’ histories name stay.
Implementations§
Source§impl Organization
impl Organization
pub const NAME: Column<Organization, String>
Trait Implementations§
Source§impl Aggregate for Organization
impl Aggregate for Organization
const NAME: &'static str = "organization"
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 Organization
impl Create for Organization
Source§impl<SofieContext: Writes> Resolve<SofieContext> for Organization
impl<SofieContext: Writes> Resolve<SofieContext> for Organization
Source§impl Serialize for Organization
impl Serialize for Organization
Source§impl Update for Organization
impl Update for Organization
impl Uses<SoftDelete> for Organization
impl Uses<Timestamps> for Organization
Auto Trait Implementations§
impl Forget for Organization
impl Freeze for Organization
impl RefUnwindSafe for Organization
impl Send for Organization
impl Sync for Organization
impl Unpin for Organization
impl UnsafeUnpin for Organization
impl UnwindSafe for Organization
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