pub struct ErrorCase {
pub name: String,
pub doc: Doc,
pub kind: ErrorKind,
pub exit_code: u8,
pub payload: Option<SchemaType>,
}Fields§
§name: String§doc: Doc§kind: ErrorKind§exit_code: u8§payload: Option<SchemaType>Schema of the error payload, if any.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for ErrorCase
impl<'de> Deserialize<'de> for ErrorCase
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<ErrorCase, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ErrorCase, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl FromSchema for ErrorCase
impl FromSchema for ErrorCase
fn from_value(value: &SchemaValue) -> Result<ErrorCase, FromSchemaError>
Source§impl IntoSchema for ErrorCase
impl IntoSchema for ErrorCase
fn type_id() -> TypeId
fn register_in(builder: &mut SchemaBuilder) -> SchemaType
fn to_value(&self) -> SchemaValue
Source§impl Serialize for ErrorCase
impl Serialize for ErrorCase
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for ErrorCase
Auto Trait Implementations§
impl Freeze for ErrorCase
impl RefUnwindSafe for ErrorCase
impl Send for ErrorCase
impl Sync for ErrorCase
impl Unpin for ErrorCase
impl UnsafeUnpin for ErrorCase
impl UnwindSafe for ErrorCase
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