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
}
Expand description
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
Mark this as an exclusion rule.
Exclusion rules are internal to the builder and not materialized in the
CodeResources
file.
Trait Implementations
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
Auto Trait Implementations
impl RefUnwindSafe for CodeResourcesRule
impl Send for CodeResourcesRule
impl Sync for CodeResourcesRule
impl Unpin for CodeResourcesRule
impl UnwindSafe for CodeResourcesRule
Blanket Implementations
Mutably borrows from an owned value. Read more
Compare self to key
and return true
if they are equal.
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more