pub struct ExpandedChange {
pub operations: Vec<Op>,
pub actor_id: ActorId,
pub hash: Option<ChangeHash>,
pub seq: u64,
pub start_op: NonZeroU64,
pub time: i64,
pub message: Option<String>,
pub deps: Vec<ChangeHash>,
pub extra_bytes: Vec<u8>,
}Expand description
A change represents a group of operations performed by an actor.
Fields§
§operations: Vec<Op>The operations performed in this change.
actor_id: ActorIdThe actor that performed this change.
hash: Option<ChangeHash>The hash of this change.
seq: u64The index of this change in the changes from this actor.
start_op: NonZeroU64The start operation index. Starts at 1.
time: i64The time that this change was committed.
message: Option<String>The message of this change.
deps: Vec<ChangeHash>The dependencies of this change.
extra_bytes: Vec<u8>Trait Implementations§
Source§impl<'de> Deserialize<'de> for Change
impl<'de> Deserialize<'de> for Change
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 From<&Change> for ExpandedChange
impl From<&Change> for ExpandedChange
Source§impl From<Change> for Change
impl From<Change> for Change
Source§fn from(e: ExpandedChange) -> Self
fn from(e: ExpandedChange) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze 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
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