pub struct Invite {
pub object: String,
pub id: String,
pub email: String,
pub role: OrganizationRole,
pub status: InviteStatus,
pub invited_at: u32,
pub expires_at: u32,
pub accepted_at: Option<u32>,
}
Expand description
Represents an individual invite
to the organization.
Fields§
§object: String
The object type, which is always organization.invite
id: String
The identifier, which can be referenced in API endpoints
email: String
The email address of the individual to whom the invite was sent
role: OrganizationRole
owner
or reader
status: InviteStatus
accepted
, expired
, or pending
invited_at: u32
The Unix timestamp (in seconds) of when the invite was sent.
expires_at: u32
The Unix timestamp (in seconds) of when the invite expires.
accepted_at: Option<u32>
The Unix timestamp (in seconds) of when the invite was accepted.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Invite
impl<'de> Deserialize<'de> for Invite
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for Invite
Auto Trait Implementations§
impl Freeze for Invite
impl RefUnwindSafe for Invite
impl Send for Invite
impl Sync for Invite
impl Unpin for Invite
impl UnwindSafe for Invite
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