pub enum CreateDumpOutcome {
Created(DumpTask),
Exists {
id: String,
},
ExistsForOtherProject {
id: String,
project_iri: String,
},
}Expand description
The outcome of create_project_dump, crossing the client→action boundary.
Decision matrix (per ADR-0001, ADR-0008, ADR-0012):
| Variant | Meaning | Typical action response |
|---|---|---|
Created(task) | Fresh dump started; poll until done. | Poll → download. |
Exists { id } | A dump for this project already exists. | Adopt / replace / error, depending on mode. |
ExistsForOtherProject { id, project_iri } | The server’s single dump slot is occupied by a different project’s dump. | Refuse (default/delete) or discard + recreate (replace + --discard-other-project). |
Variants§
Created(DumpTask)
A fresh dump was successfully triggered; task.status is InProgress.
Exists
A dump already exists; id is its server-assigned identifier.
ExistsForOtherProject
A dump already exists, but it belongs to a different project than the one requested. The DSP-API holds a single dump server-wide; this signals that the slot is occupied by another project’s dump.
project_iri is the occupying project’s IRI as reported by the server
in the 409 conflict body — not user-supplied or domain-derived. Carrying an
IRI value across layers is allowed under ADR-0001 (only the wire term
“projectIri” and the word “export” are banned above src/client/).
Trait Implementations§
Source§impl Clone for CreateDumpOutcome
impl Clone for CreateDumpOutcome
Source§fn clone(&self) -> CreateDumpOutcome
fn clone(&self) -> CreateDumpOutcome
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 CreateDumpOutcome
impl Debug for CreateDumpOutcome
impl Eq for CreateDumpOutcome
Source§impl PartialEq for CreateDumpOutcome
impl PartialEq for CreateDumpOutcome
impl StructuralPartialEq for CreateDumpOutcome
Auto Trait Implementations§
impl Freeze for CreateDumpOutcome
impl RefUnwindSafe for CreateDumpOutcome
impl Send for CreateDumpOutcome
impl Sync for CreateDumpOutcome
impl Unpin for CreateDumpOutcome
impl UnsafeUnpin for CreateDumpOutcome
impl UnwindSafe for CreateDumpOutcome
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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.