#[non_exhaustive]pub struct LayerDefinition {
pub name: String,
pub filters: Vec<Filter>,
}Expand description
A named architectural layer and the file selectors that define it.
Selectors within one definition use OR semantics. When definitions overlap, policy evaluation assigns a file to the first matching layer in declaration order.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.name: StringThe stable name used by dependency policies.
filters: Vec<Filter>File selectors that independently assign files to this layer.
Implementations§
Trait Implementations§
Source§impl Clone for LayerDefinition
impl Clone for LayerDefinition
Source§fn clone(&self) -> LayerDefinition
fn clone(&self) -> LayerDefinition
Returns a copy 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 moreAuto Trait Implementations§
impl Freeze for LayerDefinition
impl RefUnwindSafe for LayerDefinition
impl Send for LayerDefinition
impl Sync for LayerDefinition
impl Unpin for LayerDefinition
impl UnwindSafe for LayerDefinition
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