pub struct ProgramArtifact {
pub schema_version: u16,
pub id: ProgramArtifactId,
pub recipe_id: ProgramRecipeId,
pub target: ProgramTarget,
pub form: ExecutableForm,
pub executable_bytes: Vec<u8>,
}Fields§
§schema_version: u16§id: ProgramArtifactId§recipe_id: ProgramRecipeId§target: ProgramTarget§form: ExecutableForm§executable_bytes: Vec<u8>Implementations§
Source§impl ProgramArtifact
impl ProgramArtifact
pub fn native_object(&self) -> ArtifactResult<Option<NativeObjectPayload>>
pub fn executable_unit(&self) -> ArtifactResult<Option<ExecutableUnitEnvelope>>
pub fn materialize( recipe: &ProgramBuildRecipe, form: ExecutableForm, executable_bytes: Vec<u8>, ) -> ArtifactResult<Self>
pub fn validate_against( &self, recipe: &ProgramBuildRecipe, ) -> ArtifactResult<()>
Trait Implementations§
Source§impl Clone for ProgramArtifact
impl Clone for ProgramArtifact
Source§fn clone(&self) -> ProgramArtifact
fn clone(&self) -> ProgramArtifact
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 ProgramArtifact
impl Debug for ProgramArtifact
Source§impl<'de> Deserialize<'de> for ProgramArtifact
impl<'de> Deserialize<'de> for ProgramArtifact
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 ProgramArtifact
Source§impl PartialEq for ProgramArtifact
impl PartialEq for ProgramArtifact
Source§impl Serialize for ProgramArtifact
impl Serialize for ProgramArtifact
impl StructuralPartialEq for ProgramArtifact
Auto Trait Implementations§
impl Freeze for ProgramArtifact
impl RefUnwindSafe for ProgramArtifact
impl Send for ProgramArtifact
impl Sync for ProgramArtifact
impl Unpin for ProgramArtifact
impl UnsafeUnpin for ProgramArtifact
impl UnwindSafe for ProgramArtifact
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.