pub struct LeaveOrganization;Expand description
POST /organization/leave: ends the caller’s own membership, unless they are the last
owner. Answers the removed membership.
Trait Implementations§
Source§impl Clone for LeaveOrganization
impl Clone for LeaveOrganization
impl Copy for LeaveOrganization
Source§impl Debug for LeaveOrganization
impl Debug for LeaveOrganization
Source§impl Default for LeaveOrganization
impl Default for LeaveOrganization
Source§impl<D: Adapter> Endpoint<D> for LeaveOrganization
impl<D: Adapter> Endpoint<D> for LeaveOrganization
const METHOD: Method = Method::POST
const PATH: &'static str = "/organization/leave"
type Access = Authenticated
type Input = LeaveOrganizationInput
type Output = Member
async fn call( &self, ctx: Ctx<D, Authenticated>, input: LeaveOrganizationInput, ) -> Result<Member, AuthError>
Auto Trait Implementations§
impl Forget for LeaveOrganization
impl Freeze for LeaveOrganization
impl Move for LeaveOrganization
impl RefUnwindSafe for LeaveOrganization
impl Send for LeaveOrganization
impl Sync for LeaveOrganization
impl Unpin for LeaveOrganization
impl UnsafeUnpin for LeaveOrganization
impl UnwindSafe for LeaveOrganization
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