pub enum CopyVia {
Link,
Origin,
Scan,
Match,
}Expand description
Which rule found the destination counterpart an item was updated at, or found already reading as it does.
Tried in this order, and the first that answers is the one reported: the link the item
records, its own origin, a search of the destination for an item recording it as its
origin, and the caller’s --match-by. When none answers, the item is created and says
so as NoCounterpart instead.
Variants§
Link
The item’s onetaskgraph.copies entry for the destination named an item whose own
origin names this one back. Found by one read by id, and no scan.
Origin
The item’s own onetaskgraph.origin named the destination item: a copy-back.
Scan
A search of the destination for an item recording this one as its origin.
Match
A search of the destination by the caller’s --match-by.
Trait Implementations§
impl Copy for CopyVia
Source§impl<'de> Deserialize<'de> for CopyVia
impl<'de> Deserialize<'de> for CopyVia
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 Eq for CopyVia
Source§impl JsonSchema for CopyVia
impl JsonSchema for CopyVia
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreimpl StructuralPartialEq for CopyVia
Auto Trait Implementations§
impl Freeze for CopyVia
impl RefUnwindSafe for CopyVia
impl Send for CopyVia
impl Sync for CopyVia
impl Unpin for CopyVia
impl UnsafeUnpin for CopyVia
impl UnwindSafe for CopyVia
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.