Skip to main content

Change

Enum Change 

Source
#[non_exhaustive]
pub enum Change { NodeAdded { node: String, filter: String, }, NodeRemoved { node: String, filter: String, }, NodeReplaced { node: String, from: String, to: String, }, NodeReconfigured { node: String, from_hash: String, to_hash: String, }, EdgeAdded { source: String, target: String, }, EdgeRemoved { source: String, target: String, }, ParamChanged { key: String, from: Value, to: Value, }, ParamAdded { key: String, value: Value, }, ParamRemoved { key: String, value: Value, }, SearchSpaceChanged { added: Vec<String>, removed: Vec<String>, }, CodeChanged { from_sha: Option<String>, to_sha: Option<String>, }, Unspecified { reason: String, }, }
Expand description

One atomic difference between a parent experiment and its child.

Variants (Non-exhaustive)§

This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
§

NodeAdded

A node the parent’s graph did not have.

Fields

§node: String

The new node’s id.

§filter: String

The filter type behind it.

§

NodeRemoved

A node the child’s graph no longer has.

Fields

§node: String

The removed node’s id.

§filter: String

The filter type it carried.

§

NodeReplaced

Same node id, different filter behind it.

Fields

§node: String

The node id both graphs share.

§from: String

The parent’s filter type.

§to: String

The child’s filter type.

§

NodeReconfigured

Same filter, different configuration (the node’s config hash moved). The values are not recoverable from a fingerprint — only the fact that they differ.

Fields

§node: String

The node whose configuration moved.

§from_hash: String

The parent’s config hash.

§to_hash: String

The child’s config hash.

§

EdgeAdded

A data edge only the child’s graph has.

Fields

§source: String

The edge’s source node.

§target: String

The edge’s target node.

§

EdgeRemoved

A data edge only the parent’s graph had.

Fields

§source: String

The edge’s source node.

§target: String

The edge’s target node.

§

ParamChanged

The same parameter key, set to a different value.

Fields

§key: String

The parameter key.

§from: Value

The parent’s value.

§to: Value

The child’s value.

§

ParamAdded

A parameter only the child sets.

Fields

§key: String

The parameter key.

§value: Value

The value the child sets it to.

§

ParamRemoved

A parameter only the parent set.

Fields

§key: String

The parameter key.

§value: Value

The value the parent had set.

§

SearchSpaceChanged

A study’s search space moved (different dimensions searched).

Fields

§added: Vec<String>

Dimensions only the child searches.

§removed: Vec<String>

Dimensions only the parent searched.

§

CodeChanged

The code changed underneath: different git commit.

Fields

§from_sha: Option<String>

The parent’s commit sha, when it recorded one.

§to_sha: Option<String>

The child’s commit sha, when it recorded one.

§

Unspecified

There was a move, but the evidence to describe it is gone.

Fields

§reason: String

Why the diff could not be computed.

Implementations§

Source§

impl Change

Source

pub fn describe(&self) -> String

Short human rendering, used to build a move’s summary line.

Trait Implementations§

Source§

impl Clone for Change

Source§

fn clone(&self) -> Change

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for Change

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for Change

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl PartialEq for Change

Source§

fn eq(&self, other: &Change) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Serialize for Change

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl StructuralPartialEq for Change

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<T> AsAny for T
where T: Any,

§

fn as_any(&self) -> &(dyn Any + 'static)

The receiver as &dyn Any, ready for downcast_ref.
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,