pub struct OpResult {
pub body: Option<Box<dyn ResultBody>>,
pub skipped: bool,
}Expand description
The result of a successful operation.
If you have an OpResult, the operation succeeded. Failure is
represented by ExecutionError, not by a flag on the result.
Protocol-specific status codes (HTTP, CQL) live inside the
adapter’s ResultBody implementation, not on the generic result.
Fields§
§body: Option<Box<dyn ResultBody>>Adapter-specific response body. The adapter owns the native
type; consumers call .to_json() for a universal view.
Adapter-internal code can downcast via .as_any().
None for operations with no meaningful result (e.g., DDL).
skipped: boolIf true, this op was conditionally skipped (via if: field).
The activity loop counts this as a skip, not a success or error.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for OpResult
impl !UnwindSafe for OpResult
impl Freeze for OpResult
impl Send for OpResult
impl Sync for OpResult
impl Unpin for OpResult
impl UnsafeUnpin for OpResult
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more