Struct ScriptOutcome
pub struct ScriptOutcome {
pub results: Vec<Value>,
pub cursor: Option<String>,
pub failure: Option<(usize, WritePlaneError)>,
}Expand description
The typed outcome of one public script (execute-multiple). A script never fails at the
top level — failure is data: the completed prefix’s wire-encoded results, the last
committed statement’s cursor, and the failing statement’s index with its
pre-classified error. The hosts render failure through
render_public_script_error and wrap success
per-host (decision C7).
Fields§
§results: Vec<Value>The wire-encoded results of every statement that completed, in order — the script’s durable prefix, preserved so a caller can see what applied before the failure.
cursor: Option<String>The last committed statement’s cursor; None when nothing captured any effect.
failure: Option<(usize, WritePlaneError)>The failing statement’s index and error, None when the whole script completed.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ScriptOutcome
impl !RefUnwindSafe for ScriptOutcome
impl Send for ScriptOutcome
impl Sync for ScriptOutcome
impl Unpin for ScriptOutcome
impl UnsafeUnpin for ScriptOutcome
impl !UnwindSafe for ScriptOutcome
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