pub struct Options {
pub request_profile: Vec<Profile>,
pub max_redirections: usize,
pub max_document_size: Option<usize>,
pub timeout: Option<Duration>,
pub client: ClientWithMiddleware,
}reqwest only.Expand description
Loader options.
Fields§
§request_profile: Vec<Profile>One or more IRIs to use in the request as a profile parameter.
(See IANA Considerations).
max_redirections: usizeMaximum 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.
max_document_size: Option<usize>Maximum size of a loaded document, in bytes.
Responses larger than this fail with Error::TooLarge instead of
buffering unbounded amounts of memory. Defaults to 32 MiB. Set to
None to disable the limit.
timeout: Option<Duration>Timeout applied to each HTTP request, from connection to the end of the response body.
Defaults to 60 seconds, so a hung server cannot stall loading
indefinitely. Set to None to defer to the client
configuration.
client: ClientWithMiddlewareHTTP client.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Options
impl !UnwindSafe for Options
impl Freeze for Options
impl Send for Options
impl Sync for Options
impl Unpin for Options
impl UnsafeUnpin for Options
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
Source§impl<T> BorrowUnordered for T
impl<T> BorrowUnordered for T
Source§fn as_unordered(&self) -> &Unordered<T>
fn as_unordered(&self) -> &Unordered<T>
Unordered reference.