Skip to main content

AuthInvitation

Trait AuthInvitation 

Source
pub trait AuthInvitation:
    Clone
    + Send
    + Sync
    + Serialize
    + Debug
    + 'static {
    // Required methods
    fn id(&self) -> &str;
    fn organization_id(&self) -> &str;
    fn email(&self) -> &str;
    fn role(&self) -> &str;
    fn status(&self) -> &InvitationStatus;
    fn inviter_id(&self) -> &str;
    fn expires_at(&self) -> DateTime<Utc>;
    fn created_at(&self) -> DateTime<Utc>;

    // Provided methods
    fn is_pending(&self) -> bool { ... }
    fn is_expired(&self) -> bool { ... }
}
Expand description

Trait representing an invitation entity.

Required Methods§

Source

fn id(&self) -> &str

Source

fn organization_id(&self) -> &str

Source

fn email(&self) -> &str

Source

fn role(&self) -> &str

Source

fn status(&self) -> &InvitationStatus

Source

fn inviter_id(&self) -> &str

Source

fn expires_at(&self) -> DateTime<Utc>

Source

fn created_at(&self) -> DateTime<Utc>

Provided Methods§

Source

fn is_pending(&self) -> bool

Check if the invitation is still pending.

Source

fn is_expired(&self) -> bool

Check if the invitation has expired.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§