pub struct ReposUpdateBranchProtectionRequestRestrictions {
pub users: Vec<String>,
pub teams: Vec<String>,
pub apps: Option<Vec<String>>,
}
Expand description
ReposUpdateBranchProtectionRequestRestrictions : Restrict who can push to the protected branch. User, app, and team restrictions
are only available for organization-owned repositories. Set to null
to disable.
Fields§
§users: Vec<String>
The list of user login
s with push access
teams: Vec<String>
The list of team slug
s with push access
apps: Option<Vec<String>>
The list of app slug
s with push access
Implementations§
Trait Implementations§
Source§impl Clone for ReposUpdateBranchProtectionRequestRestrictions
impl Clone for ReposUpdateBranchProtectionRequestRestrictions
Source§fn clone(&self) -> ReposUpdateBranchProtectionRequestRestrictions
fn clone(&self) -> ReposUpdateBranchProtectionRequestRestrictions
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 Default for ReposUpdateBranchProtectionRequestRestrictions
impl Default for ReposUpdateBranchProtectionRequestRestrictions
Source§fn default() -> ReposUpdateBranchProtectionRequestRestrictions
fn default() -> ReposUpdateBranchProtectionRequestRestrictions
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ReposUpdateBranchProtectionRequestRestrictions
impl<'de> Deserialize<'de> for ReposUpdateBranchProtectionRequestRestrictions
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 PartialEq for ReposUpdateBranchProtectionRequestRestrictions
impl PartialEq for ReposUpdateBranchProtectionRequestRestrictions
Source§fn eq(&self, other: &ReposUpdateBranchProtectionRequestRestrictions) -> bool
fn eq(&self, other: &ReposUpdateBranchProtectionRequestRestrictions) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.impl StructuralPartialEq for ReposUpdateBranchProtectionRequestRestrictions
Auto Trait Implementations§
impl Freeze for ReposUpdateBranchProtectionRequestRestrictions
impl RefUnwindSafe for ReposUpdateBranchProtectionRequestRestrictions
impl Send for ReposUpdateBranchProtectionRequestRestrictions
impl Sync for ReposUpdateBranchProtectionRequestRestrictions
impl Unpin for ReposUpdateBranchProtectionRequestRestrictions
impl UnwindSafe for ReposUpdateBranchProtectionRequestRestrictions
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