pub struct DirectMutationContext<'a> {
pub operation: DirectMutationOp,
pub table: &'a str,
pub columns: &'a [String],
pub values: &'a [Value],
pub inject_columns: &'a [String],
pub return_type: &'a str,
}Expand description
Context for a direct SQL mutation (used by DirectSql strategy adapters).
All field references are borrowed from the caller to avoid allocation.
Fields§
§operation: DirectMutationOpThe mutation operation to perform.
table: &'a strTarget table name (e.g., "users").
columns: &'a [String]Client-supplied column names (in bind order).
values: &'a [Value]All bind values: client values first, then injected values.
inject_columns: &'a [String]Server-injected column names (e.g., RLS tenant columns), appended after client columns.
return_type: &'a strGraphQL return type name (e.g., "User"), used in the mutation response envelope.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for DirectMutationContext<'a>
impl<'a> RefUnwindSafe for DirectMutationContext<'a>
impl<'a> Send for DirectMutationContext<'a>
impl<'a> Sync for DirectMutationContext<'a>
impl<'a> Unpin for DirectMutationContext<'a>
impl<'a> UnsafeUnpin for DirectMutationContext<'a>
impl<'a> UnwindSafe for DirectMutationContext<'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
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