Struct 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: i64

Unique identifier of the team

§members_url: String§name: String

Name 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: String

Permission that the team will have for its repositories

§privacy: TeamPrivacy§repositories_url: String§slug: String§url: String

URL for the team

Implementations§

Trait Implementations§

Source§

impl Clone for Team

Source§

fn clone(&self) -> Team

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for Team

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for Team

Source§

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 Team

Source§

fn from(value: &Team) -> Self

Converts to this type from the input type.
Source§

impl From<Team> for DeploymentReviewApprovedReviewersItem

Source§

fn from(value: Team) -> Self

Converts to this type from the input type.
Source§

impl From<Team> for DeploymentReviewRejectedReviewersItem

Source§

fn from(value: Team) -> Self

Converts to this type from the input type.
Source§

impl From<Team> for DeploymentReviewRequestedReviewersItem

Source§

fn from(value: Team) -> Self

Converts to this type from the input type.
Source§

impl From<Team> for MembershipRemovedTeam

Source§

fn from(value: Team) -> Self

Converts to this type from the input type.
Source§

impl From<Team> for PullRequestClosedPullRequestRequestedReviewersItem

Source§

fn from(value: Team) -> Self

Converts to this type from the input type.
Source§

impl From<Team> for PullRequestConvertedToDraftPullRequestRequestedReviewersItem

Source§

fn from(value: Team) -> Self

Converts to this type from the input type.
Source§

impl From<Team> for PullRequestDemilestonedPullRequestRequestedReviewersItem

Source§

fn from(value: Team) -> Self

Converts to this type from the input type.
Source§

impl From<Team> for PullRequestMilestonedPullRequestRequestedReviewersItem

Source§

fn from(value: Team) -> Self

Converts to this type from the input type.
Source§

impl From<Team> for PullRequestOpenedPullRequestRequestedReviewersItem

Source§

fn from(value: Team) -> Self

Converts to this type from the input type.
Source§

impl From<Team> for PullRequestReadyForReviewPullRequestRequestedReviewersItem

Source§

fn from(value: Team) -> Self

Converts to this type from the input type.
Source§

impl From<Team> for PullRequestReopenedPullRequestRequestedReviewersItem

Source§

fn from(value: Team) -> Self

Converts to this type from the input type.
Source§

impl From<Team> for PullRequestRequestedReviewersItem

Source§

fn from(value: Team) -> Self

Converts to this type from the input type.
Source§

impl From<Team> for PullRequestReviewCommentCreatedPullRequestRequestedReviewersItem

Source§

fn from(value: Team) -> Self

Converts to this type from the input type.
Source§

impl From<Team> for PullRequestReviewCommentDeletedPullRequestRequestedReviewersItem

Source§

fn from(value: Team) -> Self

Converts to this type from the input type.
Source§

impl From<Team> for PullRequestReviewCommentEditedPullRequestRequestedReviewersItem

Source§

fn from(value: Team) -> Self

Converts to this type from the input type.
Source§

impl From<Team> for SimplePullRequestRequestedReviewersItem

Source§

fn from(value: Team) -> Self

Converts to this type from the input type.
Source§

impl From<Team> for Team

Source§

fn from(value: Team) -> Self

Converts to this type from the input type.
Source§

impl Serialize for Team

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl TryFrom<Team> for Team

Source§

type Error = String

The type returned in the event of a conversion error.
Source§

fn try_from(value: Team) -> Result<Self, String>

Performs the conversion.

Auto Trait Implementations§

§

impl Freeze for Team

§

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> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,