pub struct ReposAddCollaboratorRequest {
pub permission: Option<String>,
}
Fields§
§permission: Option<String>
The permission to grant the collaborator. Only valid on organization-owned repositories. We accept the following permissions to be set: pull
, triage
, push
, maintain
, admin
and you can also specify a custom repository role name, if the owning organization has defined any.
Implementations§
Source§impl ReposAddCollaboratorRequest
impl ReposAddCollaboratorRequest
pub fn new() -> ReposAddCollaboratorRequest
Trait Implementations§
Source§impl Clone for ReposAddCollaboratorRequest
impl Clone for ReposAddCollaboratorRequest
Source§fn clone(&self) -> ReposAddCollaboratorRequest
fn clone(&self) -> ReposAddCollaboratorRequest
Returns a duplicate 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 ReposAddCollaboratorRequest
impl Debug for ReposAddCollaboratorRequest
Source§impl Default for ReposAddCollaboratorRequest
impl Default for ReposAddCollaboratorRequest
Source§fn default() -> ReposAddCollaboratorRequest
fn default() -> ReposAddCollaboratorRequest
Returns the “default value” for a type. Read more
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>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for ReposAddCollaboratorRequest
Auto Trait Implementations§
impl Freeze for ReposAddCollaboratorRequest
impl RefUnwindSafe for ReposAddCollaboratorRequest
impl Send for ReposAddCollaboratorRequest
impl Sync for ReposAddCollaboratorRequest
impl Unpin for ReposAddCollaboratorRequest
impl UnwindSafe for ReposAddCollaboratorRequest
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