Struct tugger_apple_codesign::CodeResourcesRule [−][src]
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]
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]
fn clone(&self) -> CodeResourcesRule
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for CodeResourcesRule
[src]
impl Eq for CodeResourcesRule
[src]
impl Ord for CodeResourcesRule
[src]
fn cmp(&self, other: &Self) -> Ordering
[src]
#[must_use]pub fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn clamp(self, min: Self, max: Self) -> Self
1.50.0[src]
impl PartialEq<CodeResourcesRule> for CodeResourcesRule
[src]
impl PartialOrd<CodeResourcesRule> for CodeResourcesRule
[src]
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
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
pub fn equivalent(&self, key: &K) -> bool
[src]
impl<T> From<T> 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, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> SendSyncUnwindSafe for T where
T: Send + Sync + UnwindSafe + ?Sized,
[src]
T: Send + Sync + UnwindSafe + ?Sized,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,