pub enum FieldMutationError {
InvalidFieldName {
name: String,
},
MultilineScalar {
field: &'static str,
},
EmptyContinuationLine {
line: usize,
},
LeadingWhitespace {
line: usize,
},
}Expand description
Error validating caller-provided field mutation input.
Variants§
InvalidFieldName
The field name is not valid DCF syntax.
MultilineScalar
A named scalar setter received a multiline value.
EmptyContinuationLine
A multiline value contains an empty continuation line.
LeadingWhitespace
A logical value line begins with whitespace consumed as DCF indentation.
Trait Implementations§
Source§impl Clone for FieldMutationError
impl Clone for FieldMutationError
Source§impl Debug for FieldMutationError
impl Debug for FieldMutationError
Source§impl Display for FieldMutationError
impl Display for FieldMutationError
impl Eq for FieldMutationError
Source§impl Error for FieldMutationError
impl Error for FieldMutationError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl PartialEq for FieldMutationError
impl PartialEq for FieldMutationError
impl StructuralPartialEq for FieldMutationError
Auto Trait Implementations§
impl Freeze for FieldMutationError
impl RefUnwindSafe for FieldMutationError
impl Send for FieldMutationError
impl Sync for FieldMutationError
impl Unpin for FieldMutationError
impl UnsafeUnpin for FieldMutationError
impl UnwindSafe for FieldMutationError
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