pub struct OrganizationSession {
pub active_organization_id: Option<Id>,
}Expand description
The column the plugin adds to session. Clients see it as activeOrganizationId;
handlers read it with session.session_plugin::<Organization, _>().
Fields§
§active_organization_id: Option<Id>The organization /organization/set-active chose, which endpoints without an
explicit organizationId act on.
Implementations§
Source§impl OrganizationSession
impl OrganizationSession
Sourcepub const ACTIVE_ORGANIZATION_ID: Col<OrganizationSession, Option<Id>>
pub const ACTIVE_ORGANIZATION_ID: Col<OrganizationSession, Option<Id>>
The organization /organization/set-active chose, which endpoints without an
explicit organizationId act on.
Trait Implementations§
Source§impl Clone for OrganizationSession
impl Clone for OrganizationSession
Source§impl Debug for OrganizationSession
impl Debug for OrganizationSession
Source§impl Default for OrganizationSession
impl Default for OrganizationSession
Source§impl Fields for OrganizationSession
impl Fields for OrganizationSession
Source§impl PartialEq for OrganizationSession
impl PartialEq for OrganizationSession
impl StructuralPartialEq for OrganizationSession
Auto Trait Implementations§
impl Forget for OrganizationSession
impl Freeze for OrganizationSession
impl Move for OrganizationSession
impl RefUnwindSafe for OrganizationSession
impl Send for OrganizationSession
impl Sync for OrganizationSession
impl Unpin for OrganizationSession
impl UnsafeUnpin for OrganizationSession
impl UnwindSafe for OrganizationSession
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