pub struct ReposUpdateRepoRulesetRequest {
pub name: Option<String>,
pub target: Option<Target>,
pub enforcement: Option<RepositoryRuleEnforcement>,
pub bypass_actors: Option<Vec<RepositoryRulesetBypassActor>>,
pub conditions: Option<Box<RepositoryRulesetConditions>>,
pub rules: Option<Vec<RepositoryRule>>,
}
Fields§
§name: Option<String>
The name of the ruleset.
target: Option<Target>
The target of the ruleset Note: The push
target is in beta and is subject to change.
enforcement: Option<RepositoryRuleEnforcement>
§bypass_actors: Option<Vec<RepositoryRulesetBypassActor>>
The actors that can bypass the rules in this ruleset
conditions: Option<Box<RepositoryRulesetConditions>>
§rules: Option<Vec<RepositoryRule>>
An array of rules within the ruleset.
Implementations§
Trait Implementations§
Source§impl Clone for ReposUpdateRepoRulesetRequest
impl Clone for ReposUpdateRepoRulesetRequest
Source§fn clone(&self) -> ReposUpdateRepoRulesetRequest
fn clone(&self) -> ReposUpdateRepoRulesetRequest
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 ReposUpdateRepoRulesetRequest
impl Default for ReposUpdateRepoRulesetRequest
Source§fn default() -> ReposUpdateRepoRulesetRequest
fn default() -> ReposUpdateRepoRulesetRequest
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ReposUpdateRepoRulesetRequest
impl<'de> Deserialize<'de> for ReposUpdateRepoRulesetRequest
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 ReposUpdateRepoRulesetRequest
impl PartialEq for ReposUpdateRepoRulesetRequest
Source§fn eq(&self, other: &ReposUpdateRepoRulesetRequest) -> bool
fn eq(&self, other: &ReposUpdateRepoRulesetRequest) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.impl StructuralPartialEq for ReposUpdateRepoRulesetRequest
Auto Trait Implementations§
impl Freeze for ReposUpdateRepoRulesetRequest
impl RefUnwindSafe for ReposUpdateRepoRulesetRequest
impl Send for ReposUpdateRepoRulesetRequest
impl Sync for ReposUpdateRepoRulesetRequest
impl Unpin for ReposUpdateRepoRulesetRequest
impl UnwindSafe for ReposUpdateRepoRulesetRequest
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