pub struct ArtifactManifest {
pub namespace: String,
pub name: String,
pub version: String,
pub semantic_hash: String,
}Expand description
Stable identity for a scenario, ruleset, content pack, run policy, localization contract, or source ledger.
Fields§
§namespace: String§name: String§version: String§semantic_hash: StringImplementations§
Source§impl ArtifactManifest
impl ArtifactManifest
pub fn new( namespace: impl Into<String>, name: impl Into<String>, version: impl Into<String>, semantic_hash: impl Into<String>, ) -> Result<ArtifactManifest, CanwuError>
pub fn from_bytes( namespace: impl Into<String>, name: impl Into<String>, version: impl Into<String>, bytes: &[u8], ) -> Result<ArtifactManifest, CanwuError>
pub fn for_scenario( namespace: impl Into<String>, name: impl Into<String>, version: impl Into<String>, scenario: &Scenario, ) -> Result<ArtifactManifest, CanwuError>
pub fn for_run_configuration( namespace: impl Into<String>, name: impl Into<String>, version: impl Into<String>, configuration: &RunConfiguration, ) -> Result<ArtifactManifest, CanwuError>
Trait Implementations§
Source§impl Clone for ArtifactManifest
impl Clone for ArtifactManifest
Source§fn clone(&self) -> ArtifactManifest
fn clone(&self) -> ArtifactManifest
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 ArtifactManifest
impl Debug for ArtifactManifest
Source§impl<'de> Deserialize<'de> for ArtifactManifest
impl<'de> Deserialize<'de> for ArtifactManifest
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<ArtifactManifest, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ArtifactManifest, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for ArtifactManifest
Source§impl Ord for ArtifactManifest
impl Ord for ArtifactManifest
Source§fn cmp(&self, other: &ArtifactManifest) -> Ordering
fn cmp(&self, other: &ArtifactManifest) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for ArtifactManifest
impl PartialEq for ArtifactManifest
Source§impl PartialOrd for ArtifactManifest
impl PartialOrd for ArtifactManifest
Source§impl Serialize for ArtifactManifest
impl Serialize for ArtifactManifest
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for ArtifactManifest
Auto Trait Implementations§
impl Freeze for ArtifactManifest
impl RefUnwindSafe for ArtifactManifest
impl Send for ArtifactManifest
impl Sync for ArtifactManifest
impl Unpin for ArtifactManifest
impl UnsafeUnpin for ArtifactManifest
impl UnwindSafe for ArtifactManifest
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