pub struct CreateOrganization { /* private fields */ }Expand description
POST /organization/create: creates an organization with the caller as its owner and
makes it the session’s active organization. The server API’s create runs the same
endpoint, so hooks on CreateOrganization see both.
Implementations§
Trait Implementations§
Source§impl Clone for CreateOrganization
impl Clone for CreateOrganization
impl Copy for CreateOrganization
Source§impl Debug for CreateOrganization
impl Debug for CreateOrganization
Source§impl<D: Adapter> Endpoint<D> for CreateOrganization
impl<D: Adapter> Endpoint<D> for CreateOrganization
const METHOD: Method = Method::POST
const PATH: &'static str = "/organization/create"
type Access = MaybeAuthenticated
type Input = CreateOrganizationInput
type Output = OrganizationWithMembers
async fn call( &self, ctx: Ctx<D, MaybeAuthenticated>, input: CreateOrganizationInput, ) -> Result<OrganizationWithMembers, AuthError>
Auto Trait Implementations§
impl Forget for CreateOrganization
impl Freeze for CreateOrganization
impl Move for CreateOrganization
impl RefUnwindSafe for CreateOrganization
impl Send for CreateOrganization
impl Sync for CreateOrganization
impl Unpin for CreateOrganization
impl UnsafeUnpin for CreateOrganization
impl UnwindSafe for CreateOrganization
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