pub struct EvidenceV1 {
pub kind: EvidenceKind,
pub reference: Option<String>,
pub anchor: Option<CodeAnchorV1>,
}Expand description
One piece of evidence. reference is what the kind names:
receipt: a receipt digest (64 lowercase hex), checked by Hive;commit: a commit id (7-64 hex);ci_run: a CI run reference (anhttpsURL or a provider id);file_anchor: absent, the anchor is inanchor;url: anhttpsURL, which Hive never fetches;fact: a fact id of the vault.
Fields§
§kind: EvidenceKind§reference: Option<String>§anchor: Option<CodeAnchorV1>Implementations§
Source§impl EvidenceV1
impl EvidenceV1
pub fn validate(&self) -> Result<(), ValidationError>
Trait Implementations§
Source§impl Clone for EvidenceV1
impl Clone for EvidenceV1
Source§impl Debug for EvidenceV1
impl Debug for EvidenceV1
Source§impl<'de> Deserialize<'de> for EvidenceV1
impl<'de> Deserialize<'de> for EvidenceV1
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 EvidenceV1
Source§impl PartialEq for EvidenceV1
impl PartialEq for EvidenceV1
Source§impl Serialize for EvidenceV1
impl Serialize for EvidenceV1
impl StructuralPartialEq for EvidenceV1
Auto Trait Implementations§
impl Forget for EvidenceV1
impl Freeze for EvidenceV1
impl Move for EvidenceV1
impl RefUnwindSafe for EvidenceV1
impl Send for EvidenceV1
impl Sync for EvidenceV1
impl Unpin for EvidenceV1
impl UnsafeUnpin for EvidenceV1
impl UnwindSafe for EvidenceV1
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