pub struct ActionPrediction {
pub invocation: Digest,
pub action: Digest,
pub adapter: String,
pub payload: String,
}Expand description
Adapter-owned data needed to reconstruct an action from a prior task run.
Fields§
§invocation: DigestInvocation digest used to locate this prediction.
action: DigestFull action digest produced when the prediction was recorded.
adapter: StringAdapter name that owns and understands payload.
payload: StringAdapter-defined serialized input prediction.
Implementations§
Source§impl ActionPrediction
impl ActionPrediction
Sourcepub fn validate(&self) -> Result<(), Report>
pub fn validate(&self) -> Result<(), Report>
Check the version-one wire invariants, naming the one that fails.
A rejected prediction is only ever reported to someone working out why
a build stopped predicting, and “invalid” on its own tells them nothing
about which of these constraints to go looking at. The message stands on
its own because the agent sends callers Display, not the error chain.
Trait Implementations§
Source§impl Clone for ActionPrediction
impl Clone for ActionPrediction
Source§fn clone(&self) -> ActionPrediction
fn clone(&self) -> ActionPrediction
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 ActionPrediction
impl Debug for ActionPrediction
Source§impl<'de> Deserialize<'de> for ActionPrediction
impl<'de> Deserialize<'de> for ActionPrediction
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<ActionPrediction, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ActionPrediction, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for ActionPrediction
Source§impl PartialEq for ActionPrediction
impl PartialEq for ActionPrediction
Source§impl Serialize for ActionPrediction
impl Serialize for ActionPrediction
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 ActionPrediction
Auto Trait Implementations§
impl Freeze for ActionPrediction
impl RefUnwindSafe for ActionPrediction
impl Send for ActionPrediction
impl Sync for ActionPrediction
impl Unpin for ActionPrediction
impl UnsafeUnpin for ActionPrediction
impl UnwindSafe for ActionPrediction
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