pub struct Draft {
pub parents: BTreeSet<ChangeId>,
pub timestamp: Timestamp,
pub kind: Kind,
pub purges: Purges,
pub restores: Restores,
pub record_keys: BTreeMap<StatementId, Hash>,
pub payload: Payload,
}Expand description
What a new change is to hold, besides who makes it and with which key.
Fields§
§parents: BTreeSet<ChangeId>The heads of the author’s log.
timestamp: TimestampThe change’s system time.
kind: KindWhat the change is for.
purges: PurgesWhat the change purges.
restores: RestoresWhat the change restores, of what purges destroyed.
record_keys: BTreeMap<StatementId, Hash>The hashes of the record keys of the statements sealed in the payload, by ID.
payload: PayloadThe payload.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Forget for Draft
impl Freeze for Draft
impl Move for Draft
impl RefUnwindSafe for Draft
impl Send for Draft
impl Sync for Draft
impl Unpin for Draft
impl UnsafeUnpin for Draft
impl UnwindSafe for Draft
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