pub enum SpecFetch {
Unchanged,
Fetched {
document: Value,
etag: Option<String>,
},
}Expand description
The outcome of a conditional fetch of a cassette’s OpenAPI document.
Variants§
Unchanged
The server matched our If-None-Match and sent no body; the cached copy
is still current.
Fetched
A document, and the validator to revalidate it with next time.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SpecFetch
impl RefUnwindSafe for SpecFetch
impl Send for SpecFetch
impl Sync for SpecFetch
impl Unpin for SpecFetch
impl UnsafeUnpin for SpecFetch
impl UnwindSafe for SpecFetch
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