pub struct CanvasError {
pub code: String,
pub message: String,
}Expand description
Structured error returned from canvas handlers.
Experimental. This type is part of an experimental wire-protocol surface and may change or be removed in future SDK or CLI releases.
Fields§
§code: StringMachine-readable error code.
message: StringHuman-readable message.
Implementations§
Trait Implementations§
Source§impl Clone for CanvasError
impl Clone for CanvasError
Source§fn clone(&self) -> CanvasError
fn clone(&self) -> CanvasError
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 CanvasError
impl Debug for CanvasError
Source§impl<'de> Deserialize<'de> for CanvasError
impl<'de> Deserialize<'de> for CanvasError
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
Source§impl Display for CanvasError
impl Display for CanvasError
impl Eq for CanvasError
Source§impl Error for CanvasError
impl Error for CanvasError
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 CanvasError
impl PartialEq for CanvasError
Source§fn eq(&self, other: &CanvasError) -> bool
fn eq(&self, other: &CanvasError) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for CanvasError
impl Serialize for CanvasError
impl StructuralPartialEq for CanvasError
Auto Trait Implementations§
impl Freeze for CanvasError
impl RefUnwindSafe for CanvasError
impl Send for CanvasError
impl Sync for CanvasError
impl Unpin for CanvasError
impl UnsafeUnpin for CanvasError
impl UnwindSafe for CanvasError
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