pub struct Invite {
pub id: String,
pub email: String,
pub role: InviteRole,
pub status: InviteStatus,
pub invited_at: u64,
pub expires_at: u64,
pub accepted_at: Option<u64>,
pub projects: Option<Vec<InviteProjects>>,
}
Expand description
Represents an individual invite
to the organization.
Fields§
§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: InviteRole
owner
or reader
status: InviteStatus
accepted
,expired
, or pending
invited_at: u64
The Unix timestamp (in seconds) of when the invite was sent.
expires_at: u64
The Unix timestamp (in seconds) of when the invite expires.
accepted_at: Option<u64>
The Unix timestamp (in seconds) of when the invite was accepted.
projects: Option<Vec<InviteProjects>>
The projects that were granted membership upon acceptance of the invite.
Implementations§
Source§impl Invite
impl Invite
Sourcepub fn builder() -> InviteBuilder<((), (), (), (), (), (), (), ())>
pub fn builder() -> InviteBuilder<((), (), (), (), (), (), (), ())>
Create a builder for building Invite
.
On the builder, call .id(...)
, .email(...)
, .role(...)
, .status(...)
, .invited_at(...)
, .expires_at(...)
, .accepted_at(...)
(optional), .projects(...)
(optional) to set the values of the fields.
Finally, call .build()
to create the instance of Invite
.