pub struct ExpectedCall {
pub sql_source: String,
pub shape: CallShape,
pub base_arity: usize,
pub inject_names: Vec<String>,
pub first_is_jsonb_payload: bool,
}Expand description
What the runtime will send to a mutation’s sql_source, derived purely from
the compiled schema.
Fields§
§sql_source: StringResolved function name (the sql_source, or the operation’s table).
shape: CallShapeArgument-layout shape (diagnostics only).
base_arity: usizeNumber of positional arguments before injected params.
inject_names: Vec<String>Inject-param keys, in call order — appended after the base args.
first_is_jsonb_payload: boolWhether the first argument is the jsonb payload (update path).
Implementations§
Source§impl ExpectedCall
impl ExpectedCall
Sourcepub fn total_arity(&self) -> usize
pub fn total_arity(&self) -> usize
Total positional arity the server binds: base args plus inject params.
Trait Implementations§
Source§impl Clone for ExpectedCall
impl Clone for ExpectedCall
Source§fn clone(&self) -> ExpectedCall
fn clone(&self) -> ExpectedCall
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ExpectedCall
impl Debug for ExpectedCall
impl Eq for ExpectedCall
Source§impl PartialEq for ExpectedCall
impl PartialEq for ExpectedCall
Source§fn eq(&self, other: &ExpectedCall) -> bool
fn eq(&self, other: &ExpectedCall) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ExpectedCall
Auto Trait Implementations§
impl Freeze for ExpectedCall
impl RefUnwindSafe for ExpectedCall
impl Send for ExpectedCall
impl Sync for ExpectedCall
impl Unpin for ExpectedCall
impl UnsafeUnpin for ExpectedCall
impl UnwindSafe for ExpectedCall
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.