pub struct InviteMember;Expand description
POST /organization/invite-member: needs invitation: [create]; only owners invite
owners. Stores a pending invitation that expires after the configured TTL and, when a
mailer is configured, emails the invitee a link (AuthEmail::Plugin, kind
"organization-invitation"). Answers the invitation.
Trait Implementations§
Source§impl Clone for InviteMember
impl Clone for InviteMember
impl Copy for InviteMember
Source§impl Debug for InviteMember
impl Debug for InviteMember
Source§impl Default for InviteMember
impl Default for InviteMember
Source§impl<D: Adapter> Endpoint<D> for InviteMember
impl<D: Adapter> Endpoint<D> for InviteMember
const METHOD: Method = Method::POST
const PATH: &'static str = "/organization/invite-member"
type Access = Authenticated
type Input = InviteMemberInput
type Output = Invitation
async fn call( &self, ctx: Ctx<D, Authenticated>, input: InviteMemberInput, ) -> Result<Invitation, AuthError>
Auto Trait Implementations§
impl Forget for InviteMember
impl Freeze for InviteMember
impl Move for InviteMember
impl RefUnwindSafe for InviteMember
impl Send for InviteMember
impl Sync for InviteMember
impl Unpin for InviteMember
impl UnsafeUnpin for InviteMember
impl UnwindSafe for InviteMember
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