pub struct PayloadArtifact { /* private fields */ }Expand description
One bounded raw artifact derived for one control or candidate turn.
Implementations§
Source§impl PayloadArtifact
impl PayloadArtifact
Sourcepub fn new(
strategy: PayloadStrategyRef,
role: PayloadVariantRole,
bytes: impl Into<Vec<u8>>,
limits: PayloadStrategyLimits,
) -> Result<Self, PayloadStrategyError>
pub fn new( strategy: PayloadStrategyRef, role: PayloadVariantRole, bytes: impl Into<Vec<u8>>, limits: PayloadStrategyLimits, ) -> Result<Self, PayloadStrategyError>
Creates a bounded artifact with immutable provenance.
Sourcepub const fn strategy(&self) -> &PayloadStrategyRef
pub const fn strategy(&self) -> &PayloadStrategyRef
Returns the selected strategy reference.
Sourcepub const fn role(&self) -> PayloadVariantRole
pub const fn role(&self) -> PayloadVariantRole
Returns whether this is the control or candidate artifact.
Sourcepub fn as_bytes(&self) -> &[u8] ⓘ
pub fn as_bytes(&self) -> &[u8] ⓘ
Returns raw bytes only to the capability executor that will dispatch them.
Sourcepub fn receipt(&self) -> PayloadArtifactReceipt
pub fn receipt(&self) -> PayloadArtifactReceipt
Returns a raw-value-free receipt suitable for audit output.
Trait Implementations§
Source§impl Clone for PayloadArtifact
impl Clone for PayloadArtifact
Source§fn clone(&self) -> PayloadArtifact
fn clone(&self) -> PayloadArtifact
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 PayloadArtifact
impl Debug for PayloadArtifact
impl Eq for PayloadArtifact
Source§impl PartialEq for PayloadArtifact
impl PartialEq for PayloadArtifact
impl StructuralPartialEq for PayloadArtifact
Auto Trait Implementations§
impl Freeze for PayloadArtifact
impl RefUnwindSafe for PayloadArtifact
impl Send for PayloadArtifact
impl Sync for PayloadArtifact
impl Unpin for PayloadArtifact
impl UnsafeUnpin for PayloadArtifact
impl UnwindSafe for PayloadArtifact
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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.§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