pub struct Document {
pub origin: Origin,
pub file: Option<String>,
pub doc: Value,
pub base: Value,
pub edited: bool,
}Expand description
the document a root is built from, as the session holds it
Fields§
§origin: Originwhere it came from
file: Option<String>the file, for a file
doc: Valuethe document, in the JSON reader’s shape
base: Valuewhat it started from, for :diff
edited: boolwhether an edit changed it
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Document
impl !Send for Document
impl !Sync for Document
impl !UnwindSafe for Document
impl Forget for Document
impl Freeze for Document
impl Move for Document
impl Unpin for Document
impl UnsafeUnpin for Document
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