pub struct OrgsCreateInvitationRequest {
pub invitee_id: Option<i32>,
pub email: Option<String>,
pub role: Option<Role>,
pub team_ids: Option<Vec<i32>>,
}Fields§
§invitee_id: Option<i32>Required unless you provide email. GitHub user ID for the person you are inviting.
email: Option<String>Required unless you provide invitee_id. Email address of the person you are inviting, which can be an existing GitHub user.
role: Option<Role>The role for the new member. * 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. * reinstate - The previous role assigned to the invitee before they were removed from your organization. Can be one of the roles listed above. Only works if the invitee was previously part of your organization.
team_ids: Option<Vec<i32>>Specify IDs for the teams you want to invite new members to.
Implementations§
Source§impl OrgsCreateInvitationRequest
impl OrgsCreateInvitationRequest
pub fn new() -> OrgsCreateInvitationRequest
Trait Implementations§
Source§impl Clone for OrgsCreateInvitationRequest
impl Clone for OrgsCreateInvitationRequest
Source§fn clone(&self) -> OrgsCreateInvitationRequest
fn clone(&self) -> OrgsCreateInvitationRequest
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for OrgsCreateInvitationRequest
impl Debug for OrgsCreateInvitationRequest
Source§impl Default for OrgsCreateInvitationRequest
impl Default for OrgsCreateInvitationRequest
Source§fn default() -> OrgsCreateInvitationRequest
fn default() -> OrgsCreateInvitationRequest
Source§impl<'de> Deserialize<'de> for OrgsCreateInvitationRequest
impl<'de> Deserialize<'de> for OrgsCreateInvitationRequest
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>,
Source§impl PartialEq for OrgsCreateInvitationRequest
impl PartialEq for OrgsCreateInvitationRequest
Source§fn eq(&self, other: &OrgsCreateInvitationRequest) -> bool
fn eq(&self, other: &OrgsCreateInvitationRequest) -> bool
self and other values to be equal, and is used by ==.