pub struct Failure {
pub status: u16,
pub code: Option<String>,
pub xml: bool,
pub retry_after_seconds: Option<u64>,
pub endpoint: Option<Endpoint>,
pub times: Option<u32>,
}Expand description
An error answer, for Injection::Fail.
Fields§
§status: u16§code: Option<String>The HAFAS error code of the body. Without one, the body is the reason of the status as text.
xml: boolWhether the HAFAS error is XML instead of JSON.
retry_after_seconds: Option<u64>§endpoint: Option<Endpoint>The service it applies to, or all.
times: Option<u32>How many requests it answers, or all.
Implementations§
Trait Implementations§
impl Eq for Failure
impl StructuralPartialEq for Failure
Auto Trait Implementations§
impl Forget for Failure
impl Freeze for Failure
impl Move for Failure
impl RefUnwindSafe for Failure
impl Send for Failurewhere
RawVecInner: Send,
impl Sync for Failurewhere
RawVecInner: Sync,
impl Unpin for Failure
impl UnsafeUnpin for Failure
impl UnwindSafe for Failurewhere
RawVecInner: UnwindSafe,
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