pub struct SetActiveOrganization;Expand description
POST /organization/set-active: makes an organization the caller is a member of the
session’s active one, or clears it with organizationId: null. Answers the organization,
or null.
Trait Implementations§
Source§impl Clone for SetActiveOrganization
impl Clone for SetActiveOrganization
impl Copy for SetActiveOrganization
Source§impl Debug for SetActiveOrganization
impl Debug for SetActiveOrganization
Source§impl Default for SetActiveOrganization
impl Default for SetActiveOrganization
Source§impl<D: Adapter> Endpoint<D> for SetActiveOrganization
impl<D: Adapter> Endpoint<D> for SetActiveOrganization
const METHOD: Method = Method::POST
const PATH: &'static str = "/organization/set-active"
type Access = Authenticated
type Input = SetActiveOrganizationInput
type Output = Option<OrganizationRow>
async fn call( &self, ctx: Ctx<D, Authenticated>, input: SetActiveOrganizationInput, ) -> Result<Option<OrganizationRow>, AuthError>
Auto Trait Implementations§
impl Forget for SetActiveOrganization
impl Freeze for SetActiveOrganization
impl Move for SetActiveOrganization
impl RefUnwindSafe for SetActiveOrganization
impl Send for SetActiveOrganization
impl Sync for SetActiveOrganization
impl Unpin for SetActiveOrganization
impl UnsafeUnpin for SetActiveOrganization
impl UnwindSafe for SetActiveOrganization
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