pub trait AuthInvitation:
Clone
+ Send
+ Sync
+ Serialize
+ Debug
+ 'static {
// Required methods
fn id(&self) -> Cow<'_, str>;
fn organization_id(&self) -> Cow<'_, str>;
fn email(&self) -> &str;
fn role(&self) -> &str;
fn status(&self) -> &InvitationStatus;
fn inviter_id(&self) -> Cow<'_, str>;
fn expires_at(&self) -> DateTime<Utc>;
fn created_at(&self) -> DateTime<Utc>;
// Provided methods
fn optional_role(&self) -> Option<&str> { ... }
fn team_id(&self) -> Option<&str> { ... }
fn is_pending(&self) -> bool { ... }
fn is_expired(&self) -> bool { ... }
}Expand description
Trait representing an invitation entity.
Required Methods§
fn id(&self) -> Cow<'_, str>
fn organization_id(&self) -> Cow<'_, str>
fn email(&self) -> &str
fn role(&self) -> &str
fn status(&self) -> &InvitationStatus
fn inviter_id(&self) -> Cow<'_, str>
fn expires_at(&self) -> DateTime<Utc>
fn created_at(&self) -> DateTime<Utc>
Provided Methods§
fn optional_role(&self) -> Option<&str>
fn team_id(&self) -> Option<&str>
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".