Struct octorust::types::ReposAddCollaboratorRequest
source · pub struct ReposAddCollaboratorRequest {
pub permission: Option<TeamsAddUpdateRepoPermissionsInOrgRequestPermission>,
pub permissions: String,
}
Fields§
§permission: Option<TeamsAddUpdateRepoPermissionsInOrgRequestPermission>
The permission to grant the team on this repository. Can be one of:
\* pull
- team members can pull, but not push to or administer this repository.
\* push
- team members can pull and push, but not administer this repository.
\* admin
- team members can pull, push and administer this repository.
\* maintain
- team members can manage the repository without access to sensitive or destructive actions. Recommended for project managers. Only applies to repositories owned by organizations.
\* triage
- team members can proactively manage issues and pull requests without write access. Recommended for contributors who triage a repository. Only applies to repositories owned by organizations.
If no permission is specified, the team’s permission
attribute will be used to determine what permission to grant the team on this repository.
permissions: String
Trait Implementations§
source§impl Clone for ReposAddCollaboratorRequest
impl Clone for ReposAddCollaboratorRequest
source§fn clone(&self) -> ReposAddCollaboratorRequest
fn clone(&self) -> ReposAddCollaboratorRequest
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ReposAddCollaboratorRequest
impl Debug for ReposAddCollaboratorRequest
source§impl<'de> Deserialize<'de> for ReposAddCollaboratorRequest
impl<'de> Deserialize<'de> for ReposAddCollaboratorRequest
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 JsonSchema for ReposAddCollaboratorRequest
impl JsonSchema for ReposAddCollaboratorRequest
source§fn schema_name() -> String
fn schema_name() -> String
source§fn json_schema(gen: &mut SchemaGenerator) -> Schema
fn json_schema(gen: &mut SchemaGenerator) -> Schema
source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
$ref
keyword. Read moresource§impl PartialEq<ReposAddCollaboratorRequest> for ReposAddCollaboratorRequest
impl PartialEq<ReposAddCollaboratorRequest> for ReposAddCollaboratorRequest
source§fn eq(&self, other: &ReposAddCollaboratorRequest) -> bool
fn eq(&self, other: &ReposAddCollaboratorRequest) -> bool
self
and other
values to be equal, and is used
by ==
.