pub struct Ruleset {
pub id: u64,
pub name: String,
pub definition: Ruleset,
pub unmanaged_rules: Vec<Value>,
pub limitations: Vec<Limitation>,
}Expand description
A repository ruleset as GitHub reports it.
Fields§
§id: u64Stable API identifier used by the update endpoint.
name: StringThe ruleset’s name.
definition: RulesetThe part of the ruleset that the configuration declares.
unmanaged_rules: Vec<Value>The rules of types the configuration cannot declare, exactly as GitHub returned them. An update sends them back unchanged.
limitations: Vec<Limitation>What the decoder found that the configuration cannot declare, such as an unmanaged rule type.
Trait Implementations§
impl Eq for Ruleset
impl StructuralPartialEq for Ruleset
Source§impl TryFrom<RulesetResponse> for Ruleset
impl TryFrom<RulesetResponse> for Ruleset
Source§fn try_from(value: RulesetResponse) -> Result<Self, ForgeError>
fn try_from(value: RulesetResponse) -> Result<Self, ForgeError>
Decode leniently: a rule type the configuration cannot declare is reported as a limitation and kept as an opaque value.
Source§type Error = ForgeError
type Error = ForgeError
The type returned in the event of a conversion error.
Auto Trait Implementations§
impl Freeze for Ruleset
impl RefUnwindSafe for Ruleset
impl Send for Ruleset
impl Sync for Ruleset
impl Unpin for Ruleset
impl UnsafeUnpin for Ruleset
impl UnwindSafe for Ruleset
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.