pub struct LocalIntegration {Show 14 fields
pub version: u16,
pub spool: Uuid,
pub device: [u8; 32],
pub author: SourceAuthor,
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 result_visibility: VisibilityTier,
pub initiating_request_proof: ContentHash,
pub local_policy_version: ContentHash,
pub executed_at_ms: i64,
}Fields§
§version: u16§spool: Uuid§device: [u8; 32]§source_thread: ContentHash§source_operation: ContentHash§source_revision: StateId§target_thread: ContentHash§expected_target_frontier: BTreeSet<ContentHash>§result: Capture§result_visibility: VisibilityTier§initiating_request_proof: ContentHashAudit binding to whatever initiated the integration: the verified device-RPC request proof on the device path, a digest of the request tuple on the CLI path. Never an authority proof; heddle admission does not read it.
local_policy_version: ContentHash§executed_at_ms: i64Implementations§
Source§impl LocalIntegration
impl LocalIntegration
pub fn encode(&self) -> Result<Vec<u8>>
pub fn decode(bytes: &[u8]) -> Result<Self>
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 record from the named source Thread, never a record selected solely by a claimed revision hash.
Trait Implementations§
Source§impl Clone for LocalIntegration
impl Clone for LocalIntegration
Source§fn clone(&self) -> LocalIntegration
fn clone(&self) -> LocalIntegration
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 moreSource§impl Debug for LocalIntegration
impl Debug for LocalIntegration
Source§impl<'de> Deserialize<'de> for LocalIntegration
impl<'de> Deserialize<'de> for LocalIntegration
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 LocalIntegration
Source§impl PartialEq for LocalIntegration
impl PartialEq for LocalIntegration
Source§impl Serialize for LocalIntegration
impl Serialize for LocalIntegration
impl StructuralPartialEq for LocalIntegration
Auto Trait Implementations§
impl Freeze for LocalIntegration
impl RefUnwindSafe for LocalIntegration
impl Send for LocalIntegration
impl Sync for LocalIntegration
impl Unpin for LocalIntegration
impl UnsafeUnpin for LocalIntegration
impl UnwindSafe for LocalIntegration
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