pub struct MapFetcher {
pub docs: HashMap<(String, String), String>,
}Expand description
Fetcher that reads from a map of (service, version) -> JSON for tests.
Fields§
§docs: HashMap<(String, String), String>Trait Implementations§
Source§impl DiscoveryFetcher for MapFetcher
impl DiscoveryFetcher for MapFetcher
Source§fn fetch_document(
&self,
service: &str,
version: &str,
) -> Result<String, BuilderError>
fn fetch_document( &self, service: &str, version: &str, ) -> Result<String, BuilderError>
Returns the raw JSON body of the Discovery REST document.
Auto Trait Implementations§
impl Freeze for MapFetcher
impl RefUnwindSafe for MapFetcher
impl Send for MapFetcher
impl Sync for MapFetcher
impl Unpin for MapFetcher
impl UnsafeUnpin for MapFetcher
impl UnwindSafe for MapFetcher
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