pub trait IntoSchemaNotJsonSerde {
type Ret;
// Required methods
fn into_schema_not_json_serde(self, url: impl Into<String>) -> Self::Ret;
fn into_schema_not_json_serde_with<__F, __URL>(self, f: __F) -> Self::Ret
where __F: FnOnce() -> __URL,
__URL: Into<String>;
}
Expand description
Extension trait for converting serde_json::Error
into Error::SchemaNotJsonSerde
with the given context.
Required Associated Types§
Required Methods§
sourcefn into_schema_not_json_serde(self, url: impl Into<String>) -> Self::Ret
fn into_schema_not_json_serde(self, url: impl Into<String>) -> Self::Ret
Converts serde_json::Error
into Error::SchemaNotJsonSerde
with the given context.
sourcefn into_schema_not_json_serde_with<__F, __URL>(self, f: __F) -> Self::Ret
fn into_schema_not_json_serde_with<__F, __URL>(self, f: __F) -> Self::Ret
Converts serde_json::Error
into Error::SchemaNotJsonSerde
with the context returned by the given function.
Object Safety§
This trait is not object safe.
Implementations on Foreign Types§
source§impl IntoSchemaNotJsonSerde for Error
impl IntoSchemaNotJsonSerde for Error
source§fn into_schema_not_json_serde(self, url: impl Into<String>) -> Self::Ret
fn into_schema_not_json_serde(self, url: impl Into<String>) -> Self::Ret
Converts serde_json::Error
into Error::SchemaNotJsonSerde
with the given context.
source§fn into_schema_not_json_serde_with<__F, __URL>(self, f: __F) -> Self::Ret
fn into_schema_not_json_serde_with<__F, __URL>(self, f: __F) -> Self::Ret
Converts serde_json::Error
into Error::SchemaNotJsonSerde
with the context returned by the given function.
type Ret = Error
source§impl<__T> IntoSchemaNotJsonSerde for Result<__T, Error>
impl<__T> IntoSchemaNotJsonSerde for Result<__T, Error>
source§fn into_schema_not_json_serde(self, url: impl Into<String>) -> Self::Ret
fn into_schema_not_json_serde(self, url: impl Into<String>) -> Self::Ret
Converts serde_json::Error
into Error::SchemaNotJsonSerde
with the given context.
source§fn into_schema_not_json_serde_with<__F, __URL>(self, f: __F) -> Self::Ret
fn into_schema_not_json_serde_with<__F, __URL>(self, f: __F) -> Self::Ret
Converts serde_json::Error
into Error::SchemaNotJsonSerde
with the context returned by the given function.