#[non_exhaustive]pub enum BodyError {
Json(Error),
Parameters(ParametersError),
Encode(EncodeError),
MissingValue {
parameter: &'static str,
},
BatchType {
found: String,
},
EntryStatus,
EntryResource,
}Expand description
A response body that is not the resource the operation answers with.
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.
Json(Error)
The body is not the FHIR JSON resource the route declares.
Parameters(ParametersError)
The Parameters resource does not fit the operation’s declared
parameter set.
Encode(EncodeError)
A decoded value has no FHIR JSON form, so it could not be read back.
MissingValue
A parameter the operation declares as mandatory states no value.
BatchType
The answer to a batch is not a batch-response Bundle.
EntryStatus
A Bundle entry carries no response.status, or one that is not an
HTTP status line.
EntryResource
A Bundle entry carries no resource, so the answer to its request is
absent rather than negative.
Trait Implementations§
Source§impl Error for BodyError
impl Error for BodyError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns 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<EncodeError> for BodyError
impl From<EncodeError> for BodyError
Source§fn from(source: EncodeError) -> Self
fn from(source: EncodeError) -> Self
Converts to this type from the input type.
Source§impl From<ParametersError> for BodyError
impl From<ParametersError> for BodyError
Source§fn from(source: ParametersError) -> Self
fn from(source: ParametersError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for BodyError
impl !UnwindSafe for BodyError
impl Freeze for BodyError
impl Send for BodyError
impl Sync for BodyError
impl Unpin for BodyError
impl UnsafeUnpin for BodyError
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