Struct octokit_rs::webhook::Team
source · pub struct Team {Show 13 fields
pub description: Option<String>,
pub html_url: String,
pub id: i64,
pub members_url: String,
pub name: String,
pub node_id: String,
pub notification_setting: Option<TeamNotificationSetting>,
pub parent: Option<TeamParent>,
pub permission: String,
pub privacy: TeamPrivacy,
pub repositories_url: String,
pub slug: String,
pub url: String,
}Expand description
Groups of organization members that gives permissions on specified repositories.
JSON schema
{
"title": "Team",
"description": "Groups of organization members that gives permissions on specified repositories.",
"type": "object",
"required": [
"description",
"html_url",
"id",
"members_url",
"name",
"node_id",
"permission",
"privacy",
"repositories_url",
"slug",
"url"
],
"properties": {
"description": {
"description": "Description of the team",
"type": [
"string",
"null"
]
},
"html_url": {
"type": "string",
"format": "uri"
},
"id": {
"description": "Unique identifier of the team",
"type": "integer"
},
"members_url": {
"type": "string",
"format": "uri-template"
},
"name": {
"description": "Name of the team",
"type": "string"
},
"node_id": {
"type": "string"
},
"notification_setting": {
"description": "Whether team members will receive notifications when their team is @mentioned",
"type": "string",
"enum": [
"notifications_enabled",
"notifications_disabled"
]
},
"parent": {
"type": [
"object",
"null"
],
"required": [
"description",
"html_url",
"id",
"members_url",
"name",
"node_id",
"permission",
"privacy",
"repositories_url",
"slug",
"url"
],
"properties": {
"description": {
"description": "Description of the team",
"type": [
"string",
"null"
]
},
"html_url": {
"type": "string",
"format": "uri"
},
"id": {
"description": "Unique identifier of the team",
"type": "integer"
},
"members_url": {
"type": "string",
"format": "uri-template"
},
"name": {
"description": "Name of the team",
"type": "string"
},
"node_id": {
"type": "string"
},
"notification_setting": {
"description": "Whether team members will receive notifications when their team is @mentioned",
"type": "string",
"enum": [
"notifications_enabled",
"notifications_disabled"
]
},
"permission": {
"description": "Permission that the team will have for its repositories",
"type": "string"
},
"privacy": {
"type": "string",
"enum": [
"open",
"closed",
"secret"
]
},
"repositories_url": {
"type": "string",
"format": "uri"
},
"slug": {
"type": "string"
},
"url": {
"description": "URL for the team",
"type": "string",
"format": "uri"
}
},
"additionalProperties": false
},
"permission": {
"description": "Permission that the team will have for its repositories",
"type": "string"
},
"privacy": {
"type": "string",
"enum": [
"open",
"closed",
"secret"
]
},
"repositories_url": {
"type": "string",
"format": "uri"
},
"slug": {
"type": "string"
},
"url": {
"description": "URL for the team",
"type": "string",
"format": "uri"
}
},
"additionalProperties": false,
"$schema": "http://json-schema.org/draft-07/schema"
}
Fields§
§description: Option<String>Description of the team
html_url: String§id: i64Unique identifier of the team
members_url: String§name: StringName of the team
node_id: String§notification_setting: Option<TeamNotificationSetting>Whether team members will receive notifications when their team is @mentioned
parent: Option<TeamParent>§permission: StringPermission that the team will have for its repositories
privacy: TeamPrivacy§repositories_url: String§slug: String§url: StringURL for the team
Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for Team
impl<'de> Deserialize<'de> for Team
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>,
Deserialize this value from the given Serde deserializer. Read more
source§impl From<Team> for MembershipRemovedTeam
impl From<Team> for MembershipRemovedTeam
source§impl From<Team> for PullRequestRequestedReviewersItem
impl From<Team> for PullRequestRequestedReviewersItem
Auto Trait Implementations§
impl RefUnwindSafe for Team
impl Send for Team
impl Sync for Team
impl Unpin for Team
impl UnwindSafe for Team
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more