pub struct DocumentRevision {Show 14 fields
pub id: String,
pub kind: RevisionKind,
pub scope: RevisionScope,
pub source_id: Option<String>,
pub author: Option<String>,
pub date: Option<String>,
pub move_name: Option<String>,
pub text: Option<String>,
pub properties: Option<RevisionProperties>,
pub source_refs: Vec<SourceRef>,
pub content: Vec<DocNode>,
pub child_start: Option<usize>,
pub child_end: Option<usize>,
pub source_index: Option<usize>,
}Fields§
§id: StringUnique within this document, including when different parts reuse a Word ID.
kind: RevisionKind§scope: RevisionScope§source_id: Option<String>§date: Option<String>§move_name: Option<String>§text: Option<String>§properties: Option<RevisionProperties>§source_refs: Vec<SourceRef>Half-open UTF-16 ranges in current paragraph text. A deletion has equal endpoints. Structural targets and text which cannot be aligned safely have no endpoints.
content: Vec<DocNode>§child_start: Option<usize>§child_end: Option<usize>§source_index: Option<usize>Trait Implementations§
Source§impl Clone for DocumentRevision
impl Clone for DocumentRevision
Source§impl Debug for DocumentRevision
impl Debug for DocumentRevision
Source§impl<'de> Deserialize<'de> for DocumentRevision
impl<'de> Deserialize<'de> for DocumentRevision
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for DocumentRevision
impl PartialEq for DocumentRevision
Source§impl Serialize for DocumentRevision
impl Serialize for DocumentRevision
impl StructuralPartialEq for DocumentRevision
Auto Trait Implementations§
impl Forget for DocumentRevision
impl Freeze for DocumentRevision
impl RefUnwindSafe for DocumentRevision
impl Send for DocumentRevision
impl Sync for DocumentRevision
impl Unpin for DocumentRevision
impl UnsafeUnpin for DocumentRevision
impl UnwindSafe for DocumentRevision
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more