pub struct ReadOptions {
pub fragment: bool,
pub uri: String,
pub host: Option<PolicyLayer>,
}Expand description
What a reading needs to know of its source.
Fields§
§fragment: boolA part of a document (an extension’s fallback, a selected fragment), with no metadata regions.
uri: StringThe document’s URI, which the tree carries.
host: Option<PolicyLayer>A host’s integrations policy (S34), read as if the document were served with it as its host-integrations:
what an editor knows of the workspace before the document is served. One in the front matter is read instead.
Trait Implementations§
Source§impl Clone for ReadOptions
impl Clone for ReadOptions
Source§impl Debug for ReadOptions
impl Debug for ReadOptions
Auto Trait Implementations§
impl Forget for ReadOptions
impl Freeze for ReadOptions
impl Move for ReadOptions
impl RefUnwindSafe for ReadOptions
impl Send for ReadOptions
impl Sync for ReadOptions
impl Unpin for ReadOptions
impl UnsafeUnpin for ReadOptions
impl UnwindSafe for ReadOptions
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