pub struct Invitation {
pub id: String,
pub organization_id: String,
pub email: String,
pub role: String,
pub status: InvitationStatus,
pub inviter_id: String,
pub expires_at: DateTime<Utc>,
pub created_at: DateTime<Utc>,
}Expand description
Organization invitation
Fields§
§id: String§organization_id: String§email: String§role: String§status: InvitationStatus§inviter_id: String§expires_at: DateTime<Utc>§created_at: DateTime<Utc>Implementations§
Source§impl Invitation
impl Invitation
Sourcepub fn is_pending(&self) -> bool
pub fn is_pending(&self) -> bool
Check if the invitation is still pending
Sourcepub fn is_expired(&self) -> bool
pub fn is_expired(&self) -> bool
Check if the invitation has expired
Trait Implementations§
Source§impl AuthInvitation for Invitation
impl AuthInvitation for Invitation
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>
Source§fn is_pending(&self) -> bool
fn is_pending(&self) -> bool
Check if the invitation is still pending.
Source§fn is_expired(&self) -> bool
fn is_expired(&self) -> bool
Check if the invitation has expired.
Source§impl AuthInvitationMeta for Invitation
impl AuthInvitationMeta for Invitation
fn table() -> &'static str
fn col_id() -> &'static str
fn col_organization_id() -> &'static str
fn col_email() -> &'static str
fn col_role() -> &'static str
fn col_status() -> &'static str
fn col_inviter_id() -> &'static str
fn col_expires_at() -> &'static str
fn col_created_at() -> &'static str
Source§impl Clone for Invitation
impl Clone for Invitation
Source§fn clone(&self) -> Invitation
fn clone(&self) -> Invitation
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for Invitation
impl Debug for Invitation
Source§impl<'de> Deserialize<'de> for Invitation
impl<'de> Deserialize<'de> for Invitation
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<Invitation, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<Invitation, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl MemoryInvitation for Invitation
impl MemoryInvitation for Invitation
fn from_create( id: String, create: &CreateInvitation, now: DateTime<Utc>, ) -> Invitation
fn set_status(&mut self, status: InvitationStatus)
Source§impl Serialize for Invitation
impl Serialize for Invitation
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for Invitation
impl RefUnwindSafe for Invitation
impl Send for Invitation
impl Sync for Invitation
impl Unpin for Invitation
impl UnsafeUnpin for Invitation
impl UnwindSafe for Invitation
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