pub struct Change {Show 13 fields
pub id: String,
pub ref: String,
pub kind: ChangeKind,
pub target: &'static str,
pub author: Option<String>,
pub date: Option<String>,
pub text: String,
pub paragraph: Option<String>,
pub move_name: Option<String>,
pub move_side: Option<MoveSide>,
pub inside: Option<String>,
pub holds_comments: Vec<String>,
pub members: Vec<ChangeMember>,
}Expand description
One tracked change.
Fields§
§id: StringThe short id: r12 in the body, header1.r1 in another story
(crate::ids::ChangeId::short).
ref: StringThe same id as Self::id.
kind: ChangeKindWhat the change does.
target: &'static strWhat it applies to: text, paragraph_mark, table_row,
table_cell or properties.
Revision author.
date: Option<String>The valid UTC instant, written in the author’s local offset when both
times record a whole-minute difference within ±14:00; otherwise Z.
Without a valid w16du:dateUtc, w:date as stored.
text: StringThe text the change covers: inserted, deleted or moved text, or the text of the run or paragraph whose properties changed.
paragraph: Option<String>The paragraph the change sits in (p12, header1.p2): the
nearest listed paragraph around it, or a row’s, cell’s or table’s
first. None in styles and outside any paragraph.
move_name: Option<String>The move’s name, shared by both of its sides.
move_side: Option<MoveSide>The side of the move, for a move.
inside: Option<String>The change whose content holds this one: an inserted, deleted or moved run, row or cell around it, or the mark of the paragraph whose properties it changes. Resolving that change so its content goes (accepting a deletion or the moved-from side, rejecting an insertion or the moved-to side) takes this one along.
holds_comments: Vec<String>The comments (c4, and a reply’s c5) whose reference mark this
change holds: resolving it so its content goes (as for
Self::inside) removes their threads, as Word does (#1159).
members: Vec<ChangeMember>The marks of a logical change (list_logical_changes) that Word
wrote as several elements, in reading order: empty for one element.
Implementations§
Source§impl Change
impl Change
Sourcepub fn element_ids(&self) -> impl Iterator<Item = &str>
pub fn element_ids(&self) -> impl Iterator<Item = &str>
The ids of the elements this change is made of, in reading order:
its Self::members’, or its own for a change of one element.
Trait Implementations§
impl Eq for Change
Source§impl Serialize for Change
impl Serialize for Change
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,
impl StructuralPartialEq for Change
Auto Trait Implementations§
impl Forget for Change
impl Freeze for Change
impl Move for Change
impl RefUnwindSafe for Change
impl Send for Change
impl Sync for Change
impl Unpin for Change
impl UnsafeUnpin for Change
impl UnwindSafe for Change
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
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
key and return true if they are equal.