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