pub struct RunKey(/* private fields */);Expand description
A run’s key: sha256:<hex>, the hash of what decides its result.
Implementations§
Source§impl RunKey
impl RunKey
Sourcepub fn of(
op: &str,
version: &str,
params: &BTreeMap<String, ParamValue>,
inputs: &BTreeMap<String, ContentId>,
) -> Self
pub fn of( op: &str, version: &str, params: &BTreeMap<String, ParamValue>, inputs: &BTreeMap<String, ContentId>, ) -> Self
The key of running op op at version (its OpSpec::version_key)
with params (every one, defaults filled) on inputs (port → result id). Run options and
metrics are not in it: they change how fast, not what.
Sourcepub fn from_fields(fields: &Value) -> Self
pub fn from_fields(fields: &Value) -> Self
The key of any JSON fields (a tool run’s: tool, image, operation, recipe), hashed in
canonical form.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for RunKey
impl<'de> Deserialize<'de> for RunKey
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 RunKey
Source§impl JsonSchema for RunKey
impl JsonSchema for RunKey
Source§fn json_schema(_: &mut SchemaGenerator) -> Schema
fn json_schema(_: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl Ord for RunKey
impl Ord for RunKey
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 PartialOrd for RunKey
impl PartialOrd for RunKey
impl StructuralPartialEq for RunKey
Auto Trait Implementations§
impl Forget for RunKey
impl Freeze for RunKey
impl Move for RunKey
impl RefUnwindSafe for RunKey
impl Send for RunKeywhere
RawVecInner: Send,
impl Sync for RunKeywhere
RawVecInner: Sync,
impl Unpin for RunKey
impl UnsafeUnpin for RunKey
impl UnwindSafe for RunKeywhere
RawVecInner: UnwindSafe,
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