pub struct CommitRequest {
pub idempotency_key: String,
pub author: String,
pub source_created_at: DateTime<Utc>,
pub archive: Vec<u8>,
pub objects: BTreeMap<String, Vec<u8>>,
pub creates: BTreeMap<String, PlannedNode>,
pub updates: BTreeMap<NodeId, PlannedNode>,
}Expand description
Everything needed to materialize one sealed session.
Object payloads must already be in the permanent format expected by their
readers. Keys in objects and creates are canonical pending:N IDs.
Fields§
§idempotency_key: String§source_created_at: DateTime<Utc>§archive: Vec<u8>§objects: BTreeMap<String, Vec<u8>>§creates: BTreeMap<String, PlannedNode>§updates: BTreeMap<NodeId, PlannedNode>Trait Implementations§
Source§impl Clone for CommitRequest
impl Clone for CommitRequest
Source§fn clone(&self) -> CommitRequest
fn clone(&self) -> CommitRequest
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for CommitRequest
impl RefUnwindSafe for CommitRequest
impl Send for CommitRequest
impl Sync for CommitRequest
impl Unpin for CommitRequest
impl UnsafeUnpin for CommitRequest
impl UnwindSafe for CommitRequest
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