Struct tugger_apple_codesign::CodeResourcesRule [−][src]
pub struct CodeResourcesRule { pub pattern: String, pub exclude: bool, pub nested: bool, pub omit: bool, pub optional: bool, pub weight: Option<u32>, // some fields omitted }
Represents an abstract rule in a CodeResources
XML plist.
This type represents both <rules>
and <rules2>
entries. It contains a
superset of all fields for these entries.
Fields
pattern: String
The rule pattern.
The <key>
in the <rules>
or <rules2>
dict.
exclude: bool
Whether this is an exclusion rule.
nested: bool
omit: bool
optional: bool
Whether the rule is optional.
weight: Option<u32>
Weighting to apply to the rule.
Implementations
impl CodeResourcesRule
[src]
impl CodeResourcesRule
[src]pub fn new(pattern: impl ToString) -> Result<Self, AppleCodesignError>
[src]
pub fn exclude(self) -> Self
[src]
Mark this as an exclusion rule.
Exclusion rules are internal to the builder and not materialized in the
CodeResources
file.
pub fn nested(self) -> Self
[src]
Mark the rule as nested.
pub fn omit(self) -> Self
[src]
Set the omit field.
pub fn optional(self) -> Self
[src]
Mark the files matched by this rule are optional.
pub fn weight(self, v: u32) -> Self
[src]
Set the weight of this rule.
Trait Implementations
impl Clone for CodeResourcesRule
[src]
impl Clone for CodeResourcesRule
[src]fn clone(&self) -> CodeResourcesRule
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Eq for CodeResourcesRule
[src]
impl Eq for CodeResourcesRule
[src]impl Ord for CodeResourcesRule
[src]
impl Ord for CodeResourcesRule
[src]impl PartialEq<CodeResourcesRule> for CodeResourcesRule
[src]
impl PartialEq<CodeResourcesRule> for CodeResourcesRule
[src]Auto Trait Implementations
impl RefUnwindSafe for CodeResourcesRule
impl RefUnwindSafe for CodeResourcesRule
impl Send for CodeResourcesRule
impl Send for CodeResourcesRule
impl Sync for CodeResourcesRule
impl Sync for CodeResourcesRule
impl Unpin for CodeResourcesRule
impl Unpin for CodeResourcesRule
impl UnwindSafe for CodeResourcesRule
impl UnwindSafe for CodeResourcesRule
Blanket Implementations
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]pub fn equivalent(&self, key: &K) -> bool
[src]
impl<T> Instrument for T
[src]
impl<T> Instrument for T
[src]pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T> Same<T> for T
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> SendSyncUnwindSafe for T where
T: Send + Sync + UnwindSafe + ?Sized,
[src]
impl<T> SendSyncUnwindSafe for T where
T: Send + Sync + UnwindSafe + ?Sized,
[src]