pub(crate) struct PathRuleState {
pub(crate) selector: PathSelector,
pub(crate) source: Option<PolicyValue>,
pub(crate) ignore: Option<PolicyValue>,
pub(crate) managed: Option<PolicyValue>,
pub(crate) format: Option<PolicyValue>,
}Expand description
One path rule decoded from the evaluated configuration.
source is a Nix-side source-membership concern (see
nix/core/paths/source.nix). This crate decodes it only because it shares
a wire schema with managed, ignore and format.
Fields§
§selector: PathSelectorWhich repository-relative paths this rule applies to.
source: Option<PolicyValue>Nix-side source-membership. Decoded but not resolved here.
ignore: Option<PolicyValue>Whether the generated ignore files list paths here. Nix-side only.
managed: Option<PolicyValue>Whether tracked files here must be generated or marked as generated.
format: Option<PolicyValue>Whether formatters process files here. Nix-side only.
Trait Implementations§
Source§impl Clone for PathRuleState
impl Clone for PathRuleState
Source§fn clone(&self) -> PathRuleState
fn clone(&self) -> PathRuleState
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 PathRuleState
impl Debug for PathRuleState
Auto Trait Implementations§
impl Freeze for PathRuleState
impl RefUnwindSafe for PathRuleState
impl Send for PathRuleState
impl Sync for PathRuleState
impl Unpin for PathRuleState
impl UnsafeUnpin for PathRuleState
impl UnwindSafe for PathRuleState
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