#[non_exhaustive]pub struct StampContract {
pub success: Vec<String>,
pub error: Vec<String>,
}Expand description
What a mutation’s function may stamp in its entity_type column (rulings AA 1, AG 2).
The one derivation the runner’s contract check reads, and the CLI’s stamp lint
(fraiseql compile --database, fraiseql doctor --against-db) with it, so the two cannot
drift (ruling AJ 1).
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.success: Vec<String>The types a success can be served as: for a cascade mutation, its payload’s entity
type (else every CascadeNode implementor); otherwise the non-error members of the
returned union, the implementors of the returned interface, or the returned type.
error: Vec<String>The types a failure can be served as: the error members of the returned union, the error implementors of the returned interface, or — for an object return, where nothing narrower is declared — every error type of the schema.
Implementations§
Source§impl StampContract
impl StampContract
Sourcepub fn of(schema: &CompiledSchema, mutation: &MutationDefinition) -> Self
pub fn of(schema: &CompiledSchema, mutation: &MutationDefinition) -> Self
The contract of mutation in schema.
Trait Implementations§
Source§impl Clone for StampContract
impl Clone for StampContract
Source§impl Debug for StampContract
impl Debug for StampContract
impl Eq for StampContract
Source§impl PartialEq for StampContract
impl PartialEq for StampContract
impl StructuralPartialEq for StampContract
Auto Trait Implementations§
impl Freeze for StampContract
impl RefUnwindSafe for StampContract
impl Send for StampContract
impl Sync for StampContract
impl Unpin for StampContract
impl UnsafeUnpin for StampContract
impl UnwindSafe for StampContract
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
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
key and return true if they are equal.