pub struct PreparedCircleOperation {
pub creation: PreparedCircleTransition,
pub history: CircleTransitionHistory,
pub commit_bytes: Vec<u8>,
pub commit_ref: StoreBatchCommitRef,
pub prepared_objects: BTreeMap<String, ExactObjectRef>,
pub policy: CircleOperationPolicy,
}Expand description
One Circle operation as prepared: everything the publication pipeline needs to upload its object graph, and nothing that changes while it does.
The objects themselves are named, not carried. Their stored bytes live in
the payload spool under each reference’s stored hash, written before the row
that names them, so this value stays KB-scale however large the graph is —
and the upload progress that does change per step lives in
circle_operation_uploads, not here.
Fields§
§creation: PreparedCircleTransition§history: CircleTransitionHistory§commit_bytes: Vec<u8>§commit_ref: StoreBatchCommitRef§prepared_objects: BTreeMap<String, ExactObjectRef>§policy: CircleOperationPolicyImplementations§
Source§impl PreparedCircleOperation
impl PreparedCircleOperation
Sourcepub fn require_prepared_objects(
&self,
prepared: &BTreeMap<String, PreparedExactObject>,
) -> Result<(), CircleJournalError>
pub fn require_prepared_objects( &self, prepared: &BTreeMap<String, PreparedExactObject>, ) -> Result<(), CircleJournalError>
Refuse a byte-carrying object map that is not this operation’s own.
The spool holds the bytes and this value holds the references; a caller that supplies both is asserting they belong together, and the assertion is checked rather than trusted.
Trait Implementations§
Source§impl Clone for PreparedCircleOperation
impl Clone for PreparedCircleOperation
Source§fn clone(&self) -> PreparedCircleOperation
fn clone(&self) -> PreparedCircleOperation
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PreparedCircleOperation
impl Debug for PreparedCircleOperation
Source§impl<'de> Deserialize<'de> for PreparedCircleOperation
impl<'de> Deserialize<'de> for PreparedCircleOperation
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 PartialEq for PreparedCircleOperation
impl PartialEq for PreparedCircleOperation
Source§impl Serialize for PreparedCircleOperation
impl Serialize for PreparedCircleOperation
impl Eq for PreparedCircleOperation
impl StructuralPartialEq for PreparedCircleOperation
Auto Trait Implementations§
impl !Freeze for PreparedCircleOperation
impl RefUnwindSafe for PreparedCircleOperation
impl Send for PreparedCircleOperation
impl Sync for PreparedCircleOperation
impl Unpin for PreparedCircleOperation
impl UnsafeUnpin for PreparedCircleOperation
impl UnwindSafe for PreparedCircleOperation
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.