pub struct HostedIntegration {Show 14 fields
pub version: u16,
pub spool: Uuid,
pub spool_genesis: ContentHash,
pub executor: [u8; 32],
pub source_thread: ContentHash,
pub source_operation: ContentHash,
pub source_revision: StateId,
pub target_thread: ContentHash,
pub expected_target_frontier: BTreeSet<ContentHash>,
pub result: Capture,
pub initiating_request_proof: ContentHash,
pub review_policy_version: ContentHash,
pub review_evidence: BTreeSet<ContentHash>,
pub executed_at_ms: i64,
}Expand description
This receipt is signed by the enclosing Thread operation’s publisher. Source originals stay in their own Thread; this fact evolves only the target graph.
Fields§
§version: u16§spool: Uuid§spool_genesis: ContentHashDigest of verified immutable Spool owner genesis, not its mutable owner.
executor: [u8; 32]§source_thread: ContentHash§source_operation: ContentHash§source_revision: StateId§target_thread: ContentHash§expected_target_frontier: BTreeSet<ContentHash>§result: CaptureExact canonical resulting State. Content installation is a separate, authorized closure transfer and never writes a checkout on receive.
initiating_request_proof: ContentHash§review_policy_version: ContentHash§review_evidence: BTreeSet<ContentHash>§executed_at_ms: i64Implementations§
Source§impl HostedIntegration
impl HostedIntegration
pub fn encode(&self) -> Result<Vec<u8>>
pub fn decode(bytes: &[u8]) -> Result<Self>
pub fn id(&self) -> Result<ContentHash>
pub fn resulting_state(&self) -> Result<State>
Sourcepub fn validate_source(&self, source: &ThreadOperation) -> Result<()>
pub fn validate_source(&self, source: &ThreadOperation) -> Result<()>
Supply the independently authenticated original source operation.
Trait Implementations§
Source§impl Clone for HostedIntegration
impl Clone for HostedIntegration
Source§impl Debug for HostedIntegration
impl Debug for HostedIntegration
Source§impl<'de> Deserialize<'de> for HostedIntegration
impl<'de> Deserialize<'de> for HostedIntegration
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
impl Eq for HostedIntegration
Source§impl PartialEq for HostedIntegration
impl PartialEq for HostedIntegration
Source§impl Serialize for HostedIntegration
impl Serialize for HostedIntegration
impl StructuralPartialEq for HostedIntegration
Auto Trait Implementations§
impl Freeze for HostedIntegration
impl RefUnwindSafe for HostedIntegration
impl Send for HostedIntegration
impl Sync for HostedIntegration
impl Unpin for HostedIntegration
impl UnsafeUnpin for HostedIntegration
impl UnwindSafe for HostedIntegration
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