pub struct TeamsUpdateLegacyRequest {
pub name: String,
pub description: Option<String>,
pub privacy: Option<Privacy>,
pub notification_setting: Option<NotificationSetting>,
pub permission: Option<Permission>,
pub parent_team_id: Option<Option<i32>>,
}
Fields§
§name: String
The name of the team.
description: Option<String>
The description of the team.
privacy: Option<Privacy>
The level of privacy this team should have. Editing teams without specifying this parameter leaves privacy
intact. 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. For a parent or child team: * closed
- visible to all members of this organization.
notification_setting: Option<NotificationSetting>
The notification setting the team has chosen. Editing teams without specifying this parameter leaves notification_setting
intact. The options are: * notifications_enabled
- team members receive notifications when the team is @mentioned. * notifications_disabled
- no one receives notifications.
permission: Option<Permission>
Deprecated. The permission that new repositories will be added to the team with when none is specified.
parent_team_id: Option<Option<i32>>
The ID of a team to set as the parent team.
Implementations§
Source§impl TeamsUpdateLegacyRequest
impl TeamsUpdateLegacyRequest
pub fn new(name: String) -> TeamsUpdateLegacyRequest
Trait Implementations§
Source§impl Clone for TeamsUpdateLegacyRequest
impl Clone for TeamsUpdateLegacyRequest
Source§fn clone(&self) -> TeamsUpdateLegacyRequest
fn clone(&self) -> TeamsUpdateLegacyRequest
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more