Struct octorust::types::OrgsCreateInvitationRequest [−][src]
pub struct OrgsCreateInvitationRequest { pub email: String, pub invitee_id: i64, pub role: Option<OrgsCreateInvitationRequestRole>, pub team_ids: Vec<i64>, }
Fields
email: String
**Required unless you provide invitee_id
**. Email address of the person you are inviting, which can be an existing GitHub user.
invitee_id: i64
**Required unless you provide email
**. GitHub user ID for the person you are inviting.
role: Option<OrgsCreateInvitationRequestRole>
Specify role for new member. Can be one of:
\* admin
- Organization owners with full administrative rights to the organization and complete access to all repositories and teams.
\* direct_member
- Non-owner organization members with ability to see other members and join teams by invitation.
\* billing_manager
- Non-owner organization members with ability to manage the billing settings of your organization.
team_ids: Vec<i64>
Specify IDs for the teams you want to invite new members to.
Trait Implementations
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
Auto Trait Implementations
impl RefUnwindSafe for OrgsCreateInvitationRequest
impl Send for OrgsCreateInvitationRequest
impl Sync for OrgsCreateInvitationRequest
impl Unpin for OrgsCreateInvitationRequest
impl UnwindSafe for OrgsCreateInvitationRequest
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more