pub(crate) struct RulesetResponse {
pub(crate) id: u64,
pub(crate) name: String,
pub(crate) target: String,
pub(crate) enforcement: Enforcement,
pub(crate) bypass_actors: Vec<BypassActorWire>,
pub(crate) conditions: RulesetConditions,
pub(crate) rules: Vec<Value>,
}Expand description
The wire shape of GitHub’s ruleset detail endpoint.
Fields§
§id: u64§name: String§target: String§enforcement: Enforcement§bypass_actors: Vec<BypassActorWire>§conditions: RulesetConditions§rules: Vec<Value>Trait Implementations§
Source§impl<'ʄ> Facet<'ʄ> for RulesetResponse
impl<'ʄ> Facet<'ʄ> for RulesetResponse
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 RulesetResponse
impl RefUnwindSafe for RulesetResponse
impl Send for RulesetResponse
impl Sync for RulesetResponse
impl Unpin for RulesetResponse
impl UnsafeUnpin for RulesetResponse
impl UnwindSafe for RulesetResponse
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