archunit/slices/assertion/
diagram_adherence_options.rs#[derive(Debug, Clone, Copy, Default, PartialEq, Eq, Hash)]
#[non_exhaustive]
pub struct DiagramAdherenceOptions {
pub ignore_orphan_slices: bool,
pub ignore_external_slices: bool,
}
impl DiagramAdherenceOptions {
#[must_use]
pub const fn new() -> Self {
Self {
ignore_orphan_slices: false,
ignore_external_slices: false,
}
}
#[must_use]
pub const fn with_orphan_slices_ignored(mut self, ignored: bool) -> Self {
self.ignore_orphan_slices = ignored;
self
}
#[must_use]
pub const fn with_external_slices_ignored(mut self, ignored: bool) -> Self {
self.ignore_external_slices = ignored;
self
}
}