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