Struct octokit_rs::webhook::TeamParent
source · pub struct TeamParent {
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<TeamParentNotificationSetting>,
pub permission: String,
pub privacy: TeamParentPrivacy,
pub repositories_url: String,
pub slug: String,
pub url: String,
}Expand description
TeamParent
JSON schema
{
"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"
]
},
"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
}
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<TeamParentNotificationSetting>Whether team members will receive notifications when their team is @mentioned
permission: StringPermission that the team will have for its repositories
privacy: TeamParentPrivacy§repositories_url: String§slug: String§url: StringURL for the team
Implementations§
source§impl TeamParent
impl TeamParent
pub fn builder() -> TeamParent
Trait Implementations§
source§impl Clone for TeamParent
impl Clone for TeamParent
source§fn clone(&self) -> TeamParent
fn clone(&self) -> TeamParent
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for TeamParent
impl Debug for TeamParent
source§impl<'de> Deserialize<'de> for TeamParent
impl<'de> Deserialize<'de> for TeamParent
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<&TeamParent> for TeamParent
impl From<&TeamParent> for TeamParent
source§fn from(value: &TeamParent) -> Self
fn from(value: &TeamParent) -> Self
Converts to this type from the input type.
source§impl From<TeamParent> for TeamParent
impl From<TeamParent> for TeamParent
source§fn from(value: TeamParent) -> Self
fn from(value: TeamParent) -> Self
Converts to this type from the input type.
source§impl Serialize for TeamParent
impl Serialize for TeamParent
source§impl TryFrom<TeamParent> for TeamParent
impl TryFrom<TeamParent> for TeamParent
Auto Trait Implementations§
impl RefUnwindSafe for TeamParent
impl Send for TeamParent
impl Sync for TeamParent
impl Unpin for TeamParent
impl UnwindSafe for TeamParent
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