Enum RecipeJsonError
#[non_exhaustive]pub enum RecipeJsonError {
InvalidJson,
InvalidStack(StackWriteError),
}Expand description
Refusal when decoding a recipe-file field.
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.
InvalidJson
The text is not syntactically valid JSON.
InvalidStack(StackWriteError)
The resolved result cannot be represented by the API stack boundary.
Trait Implementations§
§impl Clone for RecipeJsonError
impl Clone for RecipeJsonError
§fn clone(&self) -> RecipeJsonError
fn clone(&self) -> RecipeJsonError
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 more§impl Debug for RecipeJsonError
impl Debug for RecipeJsonError
§impl From<StackWriteError> for RecipeJsonError
impl From<StackWriteError> for RecipeJsonError
§fn from(error: StackWriteError) -> RecipeJsonError
fn from(error: StackWriteError) -> RecipeJsonError
Converts to this type from the input type.
§impl PartialEq for RecipeJsonError
impl PartialEq for RecipeJsonError
impl StructuralPartialEq for RecipeJsonError
Auto Trait Implementations§
impl Freeze for RecipeJsonError
impl RefUnwindSafe for RecipeJsonError
impl Send for RecipeJsonError
impl Sync for RecipeJsonError
impl Unpin for RecipeJsonError
impl UnsafeUnpin for RecipeJsonError
impl UnwindSafe for RecipeJsonError
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