pub enum Operation {
Set,
Override,
ArrayPush {
count: usize,
},
}Variants§
Set
First write to a previously-unset field. Two Sets to the
same path from different plugins is a conflict.
Override
Explicitly overwrites a prior value. Two plugins racing for
the same field can be ordered with after() / before(),
and the loser uses Override to acknowledge it intended to
stomp.
ArrayPush
Appended one or more items to an array-shaped field
(permissions, meta-data, intent-filter list, pbxproj ops…).
count lets the engine surface “plugin X added 3
permissions” without recording each one individually.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Operation
impl<'de> Deserialize<'de> for Operation
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for Operation
Auto Trait Implementations§
impl Freeze for Operation
impl RefUnwindSafe for Operation
impl Send for Operation
impl Sync for Operation
impl Unpin for Operation
impl UnsafeUnpin for Operation
impl UnwindSafe for Operation
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