pub struct GuardBoundary {
pub configured: bool,
pub unrestricted: bool,
pub allowed_zones: Vec<String>,
pub allowed_type_only_zones: Vec<String>,
pub forbidden_calls: Vec<String>,
pub coverage_required: bool,
}Expand description
Boundary permissions and call restrictions for a guard target.
Fields§
§configured: boolWhether boundary zones are configured at all.
unrestricted: boolWhether boundary imports are unrestricted for this file.
allowed_zones: Vec<String>Zones this file may import from.
allowed_type_only_zones: Vec<String>Zones this file may import from with type-only imports.
forbidden_calls: Vec<String>Forbidden callee patterns for the file’s zone.
coverage_required: boolWhether boundary coverage requires this file to belong to a zone.
Trait Implementations§
Source§impl Clone for GuardBoundary
impl Clone for GuardBoundary
Source§impl Debug for GuardBoundary
impl Debug for GuardBoundary
Auto Trait Implementations§
impl Freeze for GuardBoundary
impl RefUnwindSafe for GuardBoundary
impl Send for GuardBoundary
impl Sync for GuardBoundary
impl Unpin for GuardBoundary
impl UnsafeUnpin for GuardBoundary
impl UnwindSafe for GuardBoundary
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