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: ActorId
The actor that performed this change.
hash: Option<ChangeHash>
The hash of this change.
seq: u64
The index of this change in the changes from this actor.
start_op: NonZeroU64
The start operation index. Starts at 1.
time: i64
The 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 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