Enum fiberplane_models::providers::Error
source · #[non_exhaustive]
pub enum Error {
UnsupportedRequest,
ValidationError {
errors: Vec<ValidationError>,
},
Http {
error: HttpRequestError,
},
Data {
message: String,
},
Deserialization {
message: String,
},
Config {
message: String,
},
NotFound,
ProxyDisconnected,
Invocation {
message: String,
},
Other {
message: String,
},
}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.
UnsupportedRequest
ValidationError
Fields
§
errors: Vec<ValidationError>List of errors, so all fields that failed validation can be highlighted at once.
Http
Fields
§
error: HttpRequestErrorData
Deserialization
Config
NotFound
ProxyDisconnected
Invocation
Other
Trait Implementations§
source§impl<'de> Deserialize<'de> for Error
impl<'de> Deserialize<'de> for Error
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 Error for Error
impl Error for Error
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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 From<DecodeError> for Error
impl From<DecodeError> for Error
source§fn from(error: DecodeError) -> Self
fn from(error: DecodeError) -> Self
Converts to this type from the input type.
source§impl From<HttpRequestError> for Error
impl From<HttpRequestError> for Error
source§fn from(error: HttpRequestError) -> Self
fn from(error: HttpRequestError) -> Self
Converts to this type from the input type.
source§impl From<ParseFloatError> for Error
impl From<ParseFloatError> for Error
source§fn from(error: ParseFloatError) -> Self
fn from(error: ParseFloatError) -> Self
Converts to this type from the input type.