#[non_exhaustive]pub enum WriteOp<'a> {
Edge {
source_id: &'a str,
target_id: &'a str,
edge_type: &'a str,
},
Concept {
id: &'a str,
recorded_at: &'a str,
},
Delete {
table: &'a str,
},
Annotation {
concept_id: &'a str,
},
}Expand description
What a failing statement was trying to do, so a guard abort can name it.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Edge
Concept
Delete
Annotation
A derived annotation (0.13.3, W7.2, crate::Annotation).
The only WriteOp whose failure is not a RAISE(ABORT).
analytics_annotations carries no triggers at all — that is why it is
the cheapest bulk table and why its chunk ceiling is the largest
(D-058) — so the guard vocabulary abort_kind speaks has nothing to
say about it. What it does carry is a foreign key onto concepts, and
that is the failure a caller can actually cause.
Auto Trait Implementations§
impl<'a> Freeze for WriteOp<'a>
impl<'a> RefUnwindSafe for WriteOp<'a>
impl<'a> Send for WriteOp<'a>
impl<'a> Sync for WriteOp<'a>
impl<'a> Unpin for WriteOp<'a>
impl<'a> UnsafeUnpin for WriteOp<'a>
impl<'a> UnwindSafe for WriteOp<'a>
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> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request