pub struct CopyOutcome {
pub source: GlobalId,
pub action: CopyAction,
}Expand description
What happened to one item.
action and destination are one value rather than two fields side by side: an
updated item without a destination id, or an orphan without one, are states this type
must not be able to say — the id is what those outcomes are about. The one outcome
that legitimately has none is a dry run that would create, because nothing was
created and there is no id to report.
Fields§
§source: GlobalIdThe qualified id the item was read from.
action: CopyActionWhat happened to it, and where.
Implementations§
Source§impl CopyOutcome
impl CopyOutcome
Sourcepub fn destination(&self) -> Option<&GlobalId>
pub fn destination(&self) -> Option<&GlobalId>
The qualified id this outcome landed on, when it landed on one.
Trait Implementations§
Source§impl Clone for CopyOutcome
impl Clone for CopyOutcome
Source§fn clone(&self) -> CopyOutcome
fn clone(&self) -> CopyOutcome
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 moreSource§impl Debug for CopyOutcome
impl Debug for CopyOutcome
Source§impl<'de> Deserialize<'de> for CopyOutcome
impl<'de> Deserialize<'de> for CopyOutcome
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
Source§impl JsonSchema for CopyOutcome
impl JsonSchema for CopyOutcome
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 moreSource§impl PartialEq for CopyOutcome
impl PartialEq for CopyOutcome
Source§impl Serialize for CopyOutcome
impl Serialize for CopyOutcome
impl StructuralPartialEq for CopyOutcome
Auto Trait Implementations§
impl Freeze for CopyOutcome
impl RefUnwindSafe for CopyOutcome
impl Send for CopyOutcome
impl Sync for CopyOutcome
impl Unpin for CopyOutcome
impl UnsafeUnpin for CopyOutcome
impl UnwindSafe for CopyOutcome
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