pub struct ResolvedPolicy {
pub publication: MergePolicy,
pub publication_from: String,
pub approvals: Approvals,
pub approvals_from: String,
pub drafts_disabled: bool,
pub drafts_disabled_from: String,
pub warn_on_early_lift: bool,
pub warn_on_early_lift_from: String,
}Expand description
The publication policy a repository resolves to, and where each half of it came from.
The two fields travel with their provenance because every rendering of a policy in this crate states it: a policy read without knowing whether a rule or the built-in default decided it is one nobody can act on — the edit that changes it is in a different file in each case.
Fields§
§publication: MergePolicyHow this repository publishes.
publication_from: StringWhat decided publication: a numbered rule of the rules file, or the default.
approvals: ApprovalsWhether a change of this repository needs an approval.
approvals_from: StringWhat decided approvals, in the same words publication_from uses.
drafts_disabled: boolWhether the draft lifecycle is off, so a change request opens ready.
drafts_disabled_from: StringWhat decided drafts_disabled: a numbered rule, the default, or the shipped
default.
warn_on_early_lift: boolWhether an early lift of a draft prints its warning line.
warn_on_early_lift_from: StringWhat decided warn_on_early_lift, in the same words.
Trait Implementations§
Source§impl Clone for ResolvedPolicy
impl Clone for ResolvedPolicy
Source§impl Debug for ResolvedPolicy
impl Debug for ResolvedPolicy
impl Eq for ResolvedPolicy
Source§impl PartialEq for ResolvedPolicy
impl PartialEq for ResolvedPolicy
impl StructuralPartialEq for ResolvedPolicy
Auto Trait Implementations§
impl Freeze for ResolvedPolicy
impl RefUnwindSafe for ResolvedPolicy
impl Send for ResolvedPolicy
impl Sync for ResolvedPolicy
impl Unpin for ResolvedPolicy
impl UnsafeUnpin for ResolvedPolicy
impl UnwindSafe for ResolvedPolicy
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.