pub enum PolicyLayer {
Core,
Org,
Repo,
Path,
Mode,
Task,
}Expand description
The precedence layer that introduced a policy fragment.
Variants§
Core
Hardcoded platform invariants.
Org
Organization-wide policy.
Repo
Repository-level policy.
Path
Path-scoped policy.
Mode
Mode-specific policy.
Task
Task-local constraints.
Trait Implementations§
Source§impl Clone for PolicyLayer
impl Clone for PolicyLayer
Source§fn clone(&self) -> PolicyLayer
fn clone(&self) -> PolicyLayer
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 PolicyLayer
impl Debug for PolicyLayer
Source§impl<'de> Deserialize<'de> for PolicyLayer
impl<'de> Deserialize<'de> for PolicyLayer
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 Ord for PolicyLayer
impl Ord for PolicyLayer
Source§fn cmp(&self, other: &PolicyLayer) -> Ordering
fn cmp(&self, other: &PolicyLayer) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for PolicyLayer
impl PartialEq for PolicyLayer
Source§impl PartialOrd for PolicyLayer
impl PartialOrd for PolicyLayer
Source§impl Serialize for PolicyLayer
impl Serialize for PolicyLayer
impl Copy for PolicyLayer
impl Eq for PolicyLayer
impl StructuralPartialEq for PolicyLayer
Auto Trait Implementations§
impl Freeze for PolicyLayer
impl RefUnwindSafe for PolicyLayer
impl Send for PolicyLayer
impl Sync for PolicyLayer
impl Unpin for PolicyLayer
impl UnsafeUnpin for PolicyLayer
impl UnwindSafe for PolicyLayer
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