Struct json_ld::loader::ReqwestLoader
source · pub struct ReqwestLoader<I = IriBuf> { /* private fields */ }
Expand description
reqwest
-based loader.
Only works with the tokio
runtime.
The loader will follow indirections and Link
headers.
Loaded documents are not cached: a new network query is made each time an URL is loaded even if it has already been queried before.
Implementations§
source§impl<I> ReqwestLoader<I>
impl<I> ReqwestLoader<I>
sourcepub fn new() -> ReqwestLoader<I>
pub fn new() -> ReqwestLoader<I>
Creates a new loader with the given parsing function.
sourcepub fn new_using(options: Options<I>) -> ReqwestLoader<I>
pub fn new_using(options: Options<I>) -> ReqwestLoader<I>
Creates a new leader with the given parsing function and options.
Trait Implementations§
source§impl<I> Default for ReqwestLoader<I>
impl<I> Default for ReqwestLoader<I>
source§fn default() -> ReqwestLoader<I>
fn default() -> ReqwestLoader<I>
Returns the “default value” for a type. Read more
source§impl<I> Loader<I> for ReqwestLoader<I>
impl<I> Loader<I> for ReqwestLoader<I>
Auto Trait Implementations§
impl<I = IriBuf> !Freeze for ReqwestLoader<I>
impl<I> RefUnwindSafe for ReqwestLoader<I>where
I: RefUnwindSafe,
impl<I> Send for ReqwestLoader<I>where
I: Send,
impl<I> Sync for ReqwestLoader<I>where
I: Sync,
impl<I> Unpin for ReqwestLoader<I>where
I: Unpin,
impl<I> UnwindSafe for ReqwestLoader<I>where
I: 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