pub struct Snapshot {
pub schema_version: u32,
pub source_sha256: String,
pub track_changes: Option<Settle>,
pub summary: Summary,
pub paragraphs: Vec<Paragraph>,
pub stories: Vec<Story>,
pub tables: Vec<Table>,
pub controls: Vec<ContentControl>,
pub changes: Vec<Change>,
pub comments: Vec<CommentRecord>,
}Expand description
Snapshot of a package as it stood at inspection time, serialized by
inspect_json and consumed by jubarte::edit::apply_plan_json.
Fields§
§schema_version: u32Wire schema version.
source_sha256: StringSHA-256 of the inspected bytes.
track_changes: Option<Settle>The choice settled_snapshot read the text under; absent from a
plain snapshot, whose text is the accepted one.
summary: SummaryPackage facts.
paragraphs: Vec<Paragraph>Body paragraphs.
stories: Vec<Story>Header, footer and note stories, each with its own paragraphs.
tables: Vec<Table>Top-level body tables as grids, with nested tables under their cells.
controls: Vec<ContentControl>Content controls (w:sdt) in the body, in document order.
changes: Vec<Change>Tracked changes, as crate::changes::list_logical_changes lists
them.
comments: Vec<CommentRecord>Comments, as crate::comments::list_comments lists them.
Implementations§
Trait Implementations§
impl Eq for Snapshot
Source§impl Serialize for Snapshot
impl Serialize for Snapshot
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for Snapshot
Auto Trait Implementations§
impl Forget for Snapshot
impl Freeze for Snapshot
impl Move for Snapshot
impl RefUnwindSafe for Snapshot
impl Send for Snapshot
impl Sync for Snapshot
impl Unpin for Snapshot
impl UnsafeUnpin for Snapshot
impl UnwindSafe for Snapshot
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.