pub struct ProgramSpecArtifact {
pub artifact_version: String,
pub kind: String,
pub artifact_hash: HashId<ProgramSpec>,
pub payload: ProgramSpecV1,
}Fields§
§artifact_version: String§kind: String§artifact_hash: HashId<ProgramSpec>§payload: ProgramSpecV1Implementations§
Source§impl ProgramSpecArtifact
impl ProgramSpecArtifact
pub fn new(payload: ProgramSpecV1) -> Result<Self, ArtifactError>
pub fn validate(&self) -> Result<(), ArtifactError>
pub fn canonical_bytes(&self) -> Result<Vec<u8>, ArtifactError>
Trait Implementations§
Source§impl Clone for ProgramSpecArtifact
impl Clone for ProgramSpecArtifact
Source§fn clone(&self) -> ProgramSpecArtifact
fn clone(&self) -> ProgramSpecArtifact
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 ProgramSpecArtifact
impl Debug for ProgramSpecArtifact
Source§impl<'de> Deserialize<'de> for ProgramSpecArtifact
impl<'de> Deserialize<'de> for ProgramSpecArtifact
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
Auto Trait Implementations§
impl Freeze for ProgramSpecArtifact
impl RefUnwindSafe for ProgramSpecArtifact
impl Send for ProgramSpecArtifact
impl Sync for ProgramSpecArtifact
impl Unpin for ProgramSpecArtifact
impl UnsafeUnpin for ProgramSpecArtifact
impl UnwindSafe for ProgramSpecArtifact
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