pub struct AccountSession { /* private fields */ }Expand description
Ended, not deleted, so a cookie still carrying it is refused until it expires by itself.
Implementations§
Source§impl AccountSession
impl AccountSession
pub const ACCOUNT: Column<AccountSession, AccountId>
pub const SESSION: Column<AccountSession, Uuid>
pub const AREA: Column<AccountSession, String>
pub const PRINCIPAL: Column<AccountSession, Option<Uuid>>
pub const DEVICE: Column<AccountSession, Option<String>>
pub const LAST_SEEN_AT: Column<AccountSession, Instant>
pub const ENDED_AT: Column<AccountSession, Option<Instant>>
pub const EXPIRES_AT: Column<AccountSession, Option<Instant>>
Trait Implementations§
Source§impl Aggregate for AccountSession
impl Aggregate for AccountSession
const NAME: &'static str = "account_session"
const MODULE: &'static str = "sofie_identity"
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>
const CHILDREN: &'static [&'static ChildTable]
fn owned_by(owner: Uuid) -> Option<Condition<Self>>
fn children(&self) -> Vec<&dyn ChildRows>
fn children_mut(&mut self) -> Vec<&mut dyn ChildRows>
fn exposed_fields(&self) -> Option<Result<Map<String, Value>, Error>>
Source§impl Create for AccountSession
impl Create for AccountSession
Source§impl<SofieContext: Writes> Resolve<SofieContext> for AccountSession
impl<SofieContext: Writes> Resolve<SofieContext> for AccountSession
Source§impl Serialize for AccountSession
impl Serialize for AccountSession
Source§impl Update for AccountSession
impl Update for AccountSession
type Input = CreateAccountSession
fn update(&mut self, _: CreateAccountSession) -> Result<()>
impl Uses<Timestamps> for AccountSession
Auto Trait Implementations§
impl Forget for AccountSession
impl Freeze for AccountSession
impl RefUnwindSafe for AccountSession
impl Send for AccountSession
impl Sync for AccountSession
impl Unpin for AccountSession
impl UnsafeUnpin for AccountSession
impl UnwindSafe for AccountSession
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