pub struct HasPermission;Expand description
POST /organization/has-permission: whether the caller’s role in the organization
grants the permissions.
Trait Implementations§
Source§impl Clone for HasPermission
impl Clone for HasPermission
impl Copy for HasPermission
Source§impl Debug for HasPermission
impl Debug for HasPermission
Source§impl Default for HasPermission
impl Default for HasPermission
Source§impl<D: Adapter> Endpoint<D> for HasPermission
impl<D: Adapter> Endpoint<D> for HasPermission
const METHOD: Method = Method::POST
const PATH: &'static str = "/organization/has-permission"
type Access = Authenticated
type Input = HasPermissionInput
type Output = HasPermissionOutput
async fn call( &self, ctx: Ctx<D, Authenticated>, input: HasPermissionInput, ) -> Result<HasPermissionOutput, AuthError>
Auto Trait Implementations§
impl Forget for HasPermission
impl Freeze for HasPermission
impl Move for HasPermission
impl RefUnwindSafe for HasPermission
impl Send for HasPermission
impl Sync for HasPermission
impl Unpin for HasPermission
impl UnsafeUnpin for HasPermission
impl UnwindSafe for HasPermission
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