pub enum PatchCreateOutcome {
Created {
inserted: usize,
graph: Graph,
},
Applied {
inserted: usize,
deleted: usize,
graph: Graph,
},
}Expand description
Outcome of applying a PATCH to a path that had no prior resource.
Created { .. }— graph was seeded successfully; caller should persist it and respond with201 Created.Applied { .. }— unused on the absent path today but reserved so callers can match exhaustively in the same enum they use for the non-absent code path.
Variants§
Created
Patch applied to a newly-seeded empty graph.
Applied
Patch applied to an existing graph (for symmetry; not produced
by apply_patch_to_absent).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PatchCreateOutcome
impl RefUnwindSafe for PatchCreateOutcome
impl Send for PatchCreateOutcome
impl Sync for PatchCreateOutcome
impl Unpin for PatchCreateOutcome
impl UnsafeUnpin for PatchCreateOutcome
impl UnwindSafe for PatchCreateOutcome
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