#[non_exhaustive]pub enum MutationErrorShapeCheck {
Off,
Warn,
}Expand description
Whether the server checks a failed mutation’s error_detail.errors[] (#1425).
Clients translate a failure by errors[].identifier, so a failure that carries no
errors array, or an identifier that is not a translation key (^[a-z][a-z0-9_]*$),
reaches a person untranslated. With Warn each such response is logged
at warn and counted in mutation_error_shape_violations; the response itself is
unchanged.
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.
Trait Implementations§
Source§impl Clone for MutationErrorShapeCheck
impl Clone for MutationErrorShapeCheck
impl Copy for MutationErrorShapeCheck
Source§impl Debug for MutationErrorShapeCheck
impl Debug for MutationErrorShapeCheck
Source§impl Default for MutationErrorShapeCheck
impl Default for MutationErrorShapeCheck
Source§impl<'de> Deserialize<'de> for MutationErrorShapeCheck
impl<'de> Deserialize<'de> for MutationErrorShapeCheck
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for MutationErrorShapeCheck
Source§impl PartialEq for MutationErrorShapeCheck
impl PartialEq for MutationErrorShapeCheck
Source§impl Serialize for MutationErrorShapeCheck
impl Serialize for MutationErrorShapeCheck
impl StructuralPartialEq for MutationErrorShapeCheck
Auto Trait Implementations§
impl Freeze for MutationErrorShapeCheck
impl RefUnwindSafe for MutationErrorShapeCheck
impl Send for MutationErrorShapeCheck
impl Sync for MutationErrorShapeCheck
impl Unpin for MutationErrorShapeCheck
impl UnsafeUnpin for MutationErrorShapeCheck
impl UnwindSafe for MutationErrorShapeCheck
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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.