pub enum PackConflictPolicy {
Reject,
Skip,
ReplaceCustom,
}Expand description
What to do when an imported pack contains IDs already in the catalog.
Variants§
Reject
Reject the pack without writing any themes.
Skip
Keep existing themes and import only new IDs.
ReplaceCustom
Replace colliding custom themes; built-ins are always protected.
Trait Implementations§
Source§impl Clone for PackConflictPolicy
impl Clone for PackConflictPolicy
Source§fn clone(&self) -> PackConflictPolicy
fn clone(&self) -> PackConflictPolicy
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 moreimpl Copy for PackConflictPolicy
Source§impl Debug for PackConflictPolicy
impl Debug for PackConflictPolicy
Source§impl Default for PackConflictPolicy
impl Default for PackConflictPolicy
Source§fn default() -> PackConflictPolicy
fn default() -> PackConflictPolicy
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PackConflictPolicy
impl<'de> Deserialize<'de> for PackConflictPolicy
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<PackConflictPolicy, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<PackConflictPolicy, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for PackConflictPolicy
Source§impl PartialEq for PackConflictPolicy
impl PartialEq for PackConflictPolicy
Source§impl Serialize for PackConflictPolicy
impl Serialize for PackConflictPolicy
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for PackConflictPolicy
Auto Trait Implementations§
impl Freeze for PackConflictPolicy
impl RefUnwindSafe for PackConflictPolicy
impl Send for PackConflictPolicy
impl Sync for PackConflictPolicy
impl Unpin for PackConflictPolicy
impl UnsafeUnpin for PackConflictPolicy
impl UnwindSafe for PackConflictPolicy
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