pub struct TeamsCreateRequest {
pub name: String,
pub description: Option<String>,
pub maintainers: Option<Vec<String>>,
pub repo_names: Option<Vec<String>>,
pub privacy: Option<Privacy>,
pub notification_setting: Option<NotificationSetting>,
pub permission: Option<Permission>,
pub parent_team_id: Option<i32>,
}Fields§
§name: StringThe name of the team.
description: Option<String>The description of the team.
maintainers: Option<Vec<String>>List GitHub IDs for organization members who will become team maintainers.
repo_names: Option<Vec<String>>The full name (e.g., "organization-name/repository-name") of repositories to add the team to.
privacy: Option<Privacy>The level of privacy this team should have. The options are: For a non-nested team: * secret - only visible to organization owners and members of this team. * closed - visible to all members of this organization. Default: secret For a parent or child team: * closed - visible to all members of this organization. Default for child team: closed
notification_setting: Option<NotificationSetting>The notification setting the team has chosen. The options are: * notifications_enabled - team members receive notifications when the team is @mentioned. * notifications_disabled - no one receives notifications. Default: notifications_enabled
permission: Option<Permission>Deprecated. The permission that new repositories will be added to the team with when none is specified.
parent_team_id: Option<i32>The ID of a team to set as the parent team.
Implementations§
Source§impl TeamsCreateRequest
impl TeamsCreateRequest
pub fn new(name: String) -> TeamsCreateRequest
Trait Implementations§
Source§impl Clone for TeamsCreateRequest
impl Clone for TeamsCreateRequest
Source§fn clone(&self) -> TeamsCreateRequest
fn clone(&self) -> TeamsCreateRequest
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 TeamsCreateRequest
impl Debug for TeamsCreateRequest
Source§impl Default for TeamsCreateRequest
impl Default for TeamsCreateRequest
Source§fn default() -> TeamsCreateRequest
fn default() -> TeamsCreateRequest
Source§impl<'de> Deserialize<'de> for TeamsCreateRequest
impl<'de> Deserialize<'de> for TeamsCreateRequest
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 TeamsCreateRequest
impl PartialEq for TeamsCreateRequest
Source§fn eq(&self, other: &TeamsCreateRequest) -> bool
fn eq(&self, other: &TeamsCreateRequest) -> bool
self and other values to be equal, and is used by ==.