Skip to main content

adopt_decision

Function adopt_decision 

Source
pub fn adopt_decision(
    listed: &[&str],
    owned: &BTreeSet<&str>,
    enumerated: bool,
    allow_change: bool,
) -> AdoptDecision
Expand description

Decide how to adopt a not-yet-pinned library from this run’s listing.

An empty library is adopted outright; otherwise identity is confirmed by an overlap between the authenticated account’s listed clip ids and the library’s owned clip ids, but only on a fully enumerated listing. A complete listing with no overlap is a different (or wiped) account: it refuses, unless allow_change opts into a forced additive adoption. A narrowed listing (a --limit/--since run, where deletion is disabled anyway) cannot confirm identity, so the library is left unpinned.