pub struct Options<I> {
pub request_profile: Vec<Profile<I>>,
pub max_redirections: usize,
pub client: ClientWithMiddleware,
}
Expand description
Loader options.
Fields§
§request_profile: Vec<Profile<I>>
One or more IRIs to use in the request as a profile parameter.
(See IANA Considerations).
max_redirections: usize
Maximum number of allowed Link
header redirections before the loader
fails.
Defaults to 8.
Note: this only controls how many times the loader will use a Link
HTTP header to find the target JSON-LD document. The number of allowed
regular HTTP redirections is controlled by the HTTP
client
.
client: ClientWithMiddleware
HTTP client.
Trait Implementations§
Auto Trait Implementations§
impl<I> Freeze for Options<I>
impl<I> !RefUnwindSafe for Options<I>
impl<I> Send for Options<I>where
I: Send,
impl<I> Sync for Options<I>where
I: Sync,
impl<I> Unpin for Options<I>where
I: Unpin,
impl<I> !UnwindSafe for Options<I>
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