pub struct UpdateMemberRole;Expand description
POST /organization/update-member-role: needs member: [update] (owners always may).
Only owners grant or change the owner role, and the last owner can’t demote themselves.
Trait Implementations§
Source§impl Clone for UpdateMemberRole
impl Clone for UpdateMemberRole
impl Copy for UpdateMemberRole
Source§impl Debug for UpdateMemberRole
impl Debug for UpdateMemberRole
Source§impl Default for UpdateMemberRole
impl Default for UpdateMemberRole
Source§impl<D: Adapter> Endpoint<D> for UpdateMemberRole
impl<D: Adapter> Endpoint<D> for UpdateMemberRole
const METHOD: Method = Method::POST
const PATH: &'static str = "/organization/update-member-role"
type Access = Authenticated
type Input = UpdateMemberRoleInput
type Output = Member
async fn call( &self, ctx: Ctx<D, Authenticated>, input: UpdateMemberRoleInput, ) -> Result<Member, AuthError>
Auto Trait Implementations§
impl Forget for UpdateMemberRole
impl Freeze for UpdateMemberRole
impl Move for UpdateMemberRole
impl RefUnwindSafe for UpdateMemberRole
impl Send for UpdateMemberRole
impl Sync for UpdateMemberRole
impl Unpin for UpdateMemberRole
impl UnsafeUnpin for UpdateMemberRole
impl UnwindSafe for UpdateMemberRole
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