#[non_exhaustive]pub struct RendererError {
pub code: String,
pub message: String,
pub surface_id: Option<String>,
pub path: Option<String>,
pub function_call_id: Option<String>,
}Expand description
A renderer’s error message.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.code: StringVALIDATION_FAILED, UNALLOWED_PARENT, INTEGRITY_ERROR, …
message: StringWhat went wrong.
surface_id: Option<String>The surface, for surface errors.
path: Option<String>A JSON Pointer to the offending field, for validation errors.
function_call_id: Option<String>The function call, for function invocation errors.
Trait Implementations§
Source§impl Clone for RendererError
impl Clone for RendererError
Source§impl Debug for RendererError
impl Debug for RendererError
Source§impl<'de> Deserialize<'de> for RendererError
impl<'de> Deserialize<'de> for RendererError
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 RendererError
Source§impl PartialEq for RendererError
impl PartialEq for RendererError
Source§impl Serialize for RendererError
impl Serialize for RendererError
impl StructuralPartialEq for RendererError
Auto Trait Implementations§
impl Forget for RendererError
impl Freeze for RendererError
impl Move for RendererError
impl RefUnwindSafe for RendererError
impl Send for RendererError
impl Sync for RendererError
impl Unpin for RendererError
impl UnsafeUnpin for RendererError
impl UnwindSafe for RendererError
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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.