pub struct Certificate {
pub backend: &'static str,
pub backend_version: Option<String>,
pub obligation: String,
pub obligation_digest: Option<String>,
pub witness_ref: String,
pub artifact_path: Option<String>,
pub notes: Option<String>,
}Expand description
Metadata describing imported external evidence.
Fields§
§backend: &'static str§backend_version: Option<String>§obligation: String§obligation_digest: Option<String>§witness_ref: String§artifact_path: Option<String>§notes: Option<String>Implementations§
Source§impl Certificate
impl Certificate
pub fn new( backend: &'static str, obligation: impl Into<String>, witness_ref: impl Into<String>, ) -> Certificate
pub fn from_obligation<B>(
obligation: &Obligation,
witness_ref: impl Into<String>,
) -> Certificatewhere
B: VerificationBackend,
pub fn with_backend_version(self, version: impl Into<String>) -> Certificate
pub fn with_obligation_digest(self, digest: impl Into<String>) -> Certificate
pub fn with_artifact_path(self, path: impl Into<String>) -> Certificate
pub fn with_notes(self, notes: impl Into<String>) -> Certificate
Trait Implementations§
Source§impl Clone for Certificate
impl Clone for Certificate
Source§fn clone(&self) -> Certificate
fn clone(&self) -> Certificate
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 Certificate
impl Debug for Certificate
impl Eq for Certificate
Source§impl PartialEq for Certificate
impl PartialEq for Certificate
Source§fn eq(&self, other: &Certificate) -> bool
fn eq(&self, other: &Certificate) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for Certificate
Auto Trait Implementations§
impl Freeze for Certificate
impl RefUnwindSafe for Certificate
impl Send for Certificate
impl Sync for Certificate
impl Unpin for Certificate
impl UnsafeUnpin for Certificate
impl UnwindSafe for Certificate
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