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§
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§
Sourcefn is_pending(&self) -> bool
fn is_pending(&self) -> bool
Check if the invitation is still pending.
Sourcefn is_expired(&self) -> bool
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".