pub struct DependencyRule {
pub from_role: CrateRoleKind,
pub allowed_targets: Vec<CrateRoleKind>,
pub forbidden_targets: Vec<CrateRoleKind>,
pub description: String,
}Expand description
A rule governing dependencies between crate roles.
Fields§
§from_role: CrateRoleKindThe role that this rule applies to (the dependent).
allowed_targets: Vec<CrateRoleKind>Roles that from_role is allowed to depend on.
forbidden_targets: Vec<CrateRoleKind>Roles that from_role must never depend on.
description: StringHuman-readable explanation for this rule.
Trait Implementations§
Source§impl Clone for DependencyRule
impl Clone for DependencyRule
Source§fn clone(&self) -> DependencyRule
fn clone(&self) -> DependencyRule
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 DependencyRule
impl Debug for DependencyRule
Source§impl<'de> Deserialize<'de> for DependencyRule
impl<'de> Deserialize<'de> for DependencyRule
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 DependencyRule
impl PartialEq for DependencyRule
Source§impl Serialize for DependencyRule
impl Serialize for DependencyRule
impl StructuralPartialEq for DependencyRule
Auto Trait Implementations§
impl Freeze for DependencyRule
impl RefUnwindSafe for DependencyRule
impl Send for DependencyRule
impl Sync for DependencyRule
impl Unpin for DependencyRule
impl UnsafeUnpin for DependencyRule
impl UnwindSafe for DependencyRule
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