pub struct CheckEvidence {Show 13 fields
pub version: u16,
pub id: Uuid,
pub spool: Uuid,
pub thread: ContentHash,
pub revision: StateId,
pub check: String,
pub outcome: CheckOutcome,
pub detail: String,
pub artifacts: Vec<Uuid>,
pub supersedes: Vec<Uuid>,
pub author: CheckAuthor,
pub completed_at_ms: i64,
pub canonical_body: CanonicalBody,
}Fields§
§version: u16§id: Uuid§spool: Uuid§thread: ContentHashOriginal access scope; identical source in another Thread grants no access.
revision: StateId§check: String§outcome: CheckOutcome§detail: String§artifacts: Vec<Uuid>Independently authorized retained artifacts; a reference is no grant.
supersedes: Vec<Uuid>Explicit prior results from this same actor/check/revision; arrival time never decides which retry supersedes another result.
completed_at_ms: i64§canonical_body: CanonicalBodyCanonical MessagePack from the last successful Self::encode or Self::decode.
Not serialized. Struct literals use Default::default.
Implementations§
Source§impl CheckEvidence
impl CheckEvidence
pub fn encode(&self) -> Result<Vec<u8>, HeddleError>
pub fn decode(bytes: &[u8]) -> Result<CheckEvidence, HeddleError>
pub fn id(&self) -> Result<ContentHash, HeddleError>
Trait Implementations§
Source§impl Clone for CheckEvidence
impl Clone for CheckEvidence
Source§fn clone(&self) -> CheckEvidence
fn clone(&self) -> CheckEvidence
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 CheckEvidence
impl Debug for CheckEvidence
Source§impl<'de> Deserialize<'de> for CheckEvidence
impl<'de> Deserialize<'de> for CheckEvidence
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<CheckEvidence, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<CheckEvidence, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for CheckEvidence
Source§impl PartialEq for CheckEvidence
impl PartialEq for CheckEvidence
Source§impl Serialize for CheckEvidence
impl Serialize for CheckEvidence
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for CheckEvidence
Auto Trait Implementations§
impl !Freeze for CheckEvidence
impl RefUnwindSafe for CheckEvidence
impl Send for CheckEvidence
impl Sync for CheckEvidence
impl Unpin for CheckEvidence
impl UnsafeUnpin for CheckEvidence
impl UnwindSafe for CheckEvidence
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