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

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Deserialize this value from the given Serde deserializer. Read more

The name of the generated JSON Schema. Read more

Generates a JSON Schema for this type. Read more

Whether JSON Schemas generated for this type should be re-used where possible using the $ref keyword. Read more

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.