pub struct DelegatedImport { /* private fields */ }Expand description
Native content bound to a verified import certificate, without any claim of host commit. Original Git attribution remains inside the original State.
Implementations§
Source§impl DelegatedImport
impl DelegatedImport
Sourcepub fn bind(
signed: &SignedDelegatedImportOperationV1,
delegation: &VerifiedImportDelegation,
genesis: &ThreadGenesis,
original_identity: &ImportIdentityV1,
converted: &ThreadOperation,
parents: &[ThreadOperation],
) -> Result<DelegatedImport, HeddleError>
pub fn bind( signed: &SignedDelegatedImportOperationV1, delegation: &VerifiedImportDelegation, genesis: &ThreadGenesis, original_identity: &ImportIdentityV1, converted: &ThreadOperation, parents: &[ThreadOperation], ) -> Result<DelegatedImport, HeddleError>
Bind exact native converted content, target, frontier and ancestry. The caller verifies every native original signature before supplying it.
Sourcepub fn validate_parents(
&self,
genesis: &ThreadGenesis,
parents: &[ThreadOperation],
) -> Result<(), HeddleError>
pub fn validate_parents( &self, genesis: &ThreadGenesis, parents: &[ThreadOperation], ) -> Result<(), HeddleError>
Recheck only this exact authenticated, carrier-bound operation.
Sourcepub fn signed(&self) -> &SignedDelegatedImportOperationV1
pub fn signed(&self) -> &SignedDelegatedImportOperationV1
Original API certificate signature and typed operation bytes.
Sourcepub fn converted(&self) -> &ThreadOperation
pub fn converted(&self) -> &ThreadOperation
Exact native converted operation; no host commit is implied.
Sourcepub fn id(&self) -> Result<ContentHash, HeddleError>
pub fn id(&self) -> Result<ContentHash, HeddleError>
Existing native operation identity, unchanged by delegation or rotation.
Trait Implementations§
Source§impl Clone for DelegatedImport
impl Clone for DelegatedImport
Source§fn clone(&self) -> DelegatedImport
fn clone(&self) -> DelegatedImport
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 DelegatedImport
impl Debug for DelegatedImport
Source§impl PartialEq for DelegatedImport
impl PartialEq for DelegatedImport
impl StructuralPartialEq for DelegatedImport
Auto Trait Implementations§
impl Freeze for DelegatedImport
impl RefUnwindSafe for DelegatedImport
impl Send for DelegatedImport
impl Sync for DelegatedImport
impl Unpin for DelegatedImport
impl UnsafeUnpin for DelegatedImport
impl UnwindSafe for DelegatedImport
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