pub struct ErrorEnvelope {
pub error: ErrorEnvelopeError,
}Expand description
ErrorEnvelope
JSON schema
{
"type": "object",
"required": [
"error"
],
"properties": {
"error": {
"type": "object",
"required": [
"code",
"message"
],
"properties": {
"code": {
"type": "string"
},
"details": {
"type": "object",
"additionalProperties": true
},
"message": {
"type": "string"
}
}
}
}
}Fields§
§error: ErrorEnvelopeErrorImplementations§
Source§impl ErrorEnvelope
impl ErrorEnvelope
pub fn builder() -> ErrorEnvelope
Trait Implementations§
Source§impl Clone for ErrorEnvelope
impl Clone for ErrorEnvelope
Source§fn clone(&self) -> ErrorEnvelope
fn clone(&self) -> ErrorEnvelope
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 ErrorEnvelope
impl Debug for ErrorEnvelope
Source§impl<'de> Deserialize<'de> for ErrorEnvelope
impl<'de> Deserialize<'de> for ErrorEnvelope
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 From<ErrorEnvelope> for GetResponse
impl From<ErrorEnvelope> for GetResponse
Source§fn from(value: ErrorEnvelope) -> Self
fn from(value: ErrorEnvelope) -> Self
Converts to this type from the input type.
Source§impl From<ErrorEnvelope> for ModalityGetResponse
impl From<ErrorEnvelope> for ModalityGetResponse
Source§fn from(value: ErrorEnvelope) -> Self
fn from(value: ErrorEnvelope) -> Self
Converts to this type from the input type.
Source§impl From<ErrorEnvelope> for OperationModelsListResponse
impl From<ErrorEnvelope> for OperationModelsListResponse
Source§fn from(value: ErrorEnvelope) -> Self
fn from(value: ErrorEnvelope) -> Self
Converts to this type from the input type.
Source§impl From<ErrorEnvelope> for OperationsListResponse
impl From<ErrorEnvelope> for OperationsListResponse
Source§fn from(value: ErrorEnvelope) -> Self
fn from(value: ErrorEnvelope) -> Self
Converts to this type from the input type.
Source§impl From<ErrorEnvelope> for ResponsesCreateResponse
impl From<ErrorEnvelope> for ResponsesCreateResponse
Source§fn from(value: ErrorEnvelope) -> Self
fn from(value: ErrorEnvelope) -> Self
Converts to this type from the input type.
Source§impl From<ErrorEnvelope> for ResponsesGetResponse
impl From<ErrorEnvelope> for ResponsesGetResponse
Source§fn from(value: ErrorEnvelope) -> Self
fn from(value: ErrorEnvelope) -> Self
Converts to this type from the input type.
Source§impl From<ErrorEnvelope> for ErrorEnvelope
impl From<ErrorEnvelope> for ErrorEnvelope
Source§fn from(value: ErrorEnvelope) -> Self
fn from(value: ErrorEnvelope) -> Self
Converts to this type from the input type.
Source§impl Serialize for ErrorEnvelope
impl Serialize for ErrorEnvelope
Source§impl TryFrom<ErrorEnvelope> for ErrorEnvelope
impl TryFrom<ErrorEnvelope> for ErrorEnvelope
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: ErrorEnvelope) -> Result<Self, ConversionError>
fn try_from(value: ErrorEnvelope) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for ErrorEnvelope
impl RefUnwindSafe for ErrorEnvelope
impl Send for ErrorEnvelope
impl Sync for ErrorEnvelope
impl Unpin for ErrorEnvelope
impl UnsafeUnpin for ErrorEnvelope
impl UnwindSafe for ErrorEnvelope
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