pub struct Options {
pub request_profile: Vec<Profile>,
pub max_redirections: usize,
pub client: ClientWithMiddleware,
}
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: 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 Freeze for Options
impl !RefUnwindSafe for Options
impl Send for Options
impl Sync for Options
impl Unpin for Options
impl !UnwindSafe 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
Mutably borrows from an owned value. Read more