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