pub enum ChangeKind {
Content,
Housekeeping,
External,
}Expand description
What a change is to the people sharing a document. Every kind is durable, shared and kept in the document’s own history; they differ in whether a person takes the change back and whether a feed of what people did to the workspace shows it.
Variants§
Content
Something a person did to the content: an undo step of its author’s, shown in workspace activity.
Housekeeping
Housekeeping about the content (a read marker, a reading position): no undo step, and workspace activity leaves it out.
External
Content that came from outside rather than from anyone’s edit: articles a refresh fetched, a process’s output, what a brand-new record starts with from state that already existed. Members see it like any content, but it is nobody’s undo step, and workspace activity leaves it out.
Implementations§
Source§impl ChangeKind
impl ChangeKind
Trait Implementations§
Source§impl Clone for ChangeKind
impl Clone for ChangeKind
impl Copy for ChangeKind
Source§impl Debug for ChangeKind
impl Debug for ChangeKind
Source§impl Default for ChangeKind
impl Default for ChangeKind
Source§impl<'de> Deserialize<'de> for ChangeKind
impl<'de> Deserialize<'de> for ChangeKind
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
impl Eq for ChangeKind
Source§impl Hash for ChangeKind
impl Hash for ChangeKind
Source§impl PartialEq for ChangeKind
impl PartialEq for ChangeKind
Source§impl Serialize for ChangeKind
impl Serialize for ChangeKind
impl StructuralPartialEq for ChangeKind
Auto Trait Implementations§
impl Forget for ChangeKind
impl Freeze for ChangeKind
impl Move for ChangeKind
impl RefUnwindSafe for ChangeKind
impl Send for ChangeKind
impl Sync for ChangeKind
impl Unpin for ChangeKind
impl UnsafeUnpin for ChangeKind
impl UnwindSafe for ChangeKind
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
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
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