pub struct HostOptions {
pub outside_links: bool,
pub links_into_archives: bool,
pub trust_root: Option<String>,
pub allowed_paths: Vec<String>,
pub load_outside_resources: bool,
}Expand description
Options for FilesystemHost.
Fields§
§outside_links: boolWhether links may leave an archive (Section 9.4). Default true.
links_into_archives: boolWhether links may point into archives (Section 9.5). Default true.
trust_root: Option<String>Trust boundary relative to the host root (Section 9.6). Some(""),
the default, trusts the whole root; None trusts nothing.
allowed_paths: Vec<String>Host paths outside the boundary the user explicitly allowed.
load_outside_resources: boolWhether embeds may load resources from outside an archive. Default false.
Trait Implementations§
Source§impl Clone for HostOptions
impl Clone for HostOptions
Source§impl Debug for HostOptions
impl Debug for HostOptions
Auto Trait Implementations§
impl Freeze for HostOptions
impl RefUnwindSafe for HostOptions
impl Send for HostOptions
impl Sync for HostOptions
impl Unpin for HostOptions
impl UnsafeUnpin for HostOptions
impl UnwindSafe for HostOptions
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