pub enum AdoptDecision {
PinFresh,
PinAdopt,
AdoptForced,
Abort,
SkipPin,
}Expand description
The PHASE 2 first-use adoption decision for a not-yet-pinned library.
Computed by adopt_decision from the account’s listed clip ids, the
library’s already-owned clip ids, whether the listing is complete, and
whether --allow-account-change was passed.
Variants§
PinFresh
The destination holds no clips yet: pin it as a fresh library (normal mode; a fresh library has nothing to delete).
PinAdopt
A complete listing overlaps the existing library: same account, pin it (normal mode).
AdoptForced
A complete listing shares nothing with the existing library but
--allow-account-change was passed: adopt it and run additively.
Abort
A complete listing shares nothing with the existing library and no override was passed: refuse.
SkipPin
A narrowed (incomplete) listing cannot confirm identity: do not pin.
Implementations§
Source§impl AdoptDecision
impl AdoptDecision
Sourcepub fn is_additive(self) -> bool
pub fn is_additive(self) -> bool
Whether this outcome forces an additive (no-deletion) run.
Trait Implementations§
Source§impl Clone for AdoptDecision
impl Clone for AdoptDecision
Source§fn clone(&self) -> AdoptDecision
fn clone(&self) -> AdoptDecision
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for AdoptDecision
Source§impl Debug for AdoptDecision
impl Debug for AdoptDecision
impl Eq for AdoptDecision
Source§impl PartialEq for AdoptDecision
impl PartialEq for AdoptDecision
Source§fn eq(&self, other: &AdoptDecision) -> bool
fn eq(&self, other: &AdoptDecision) -> bool
self and other values to be equal, and is used by ==.