pub struct ContextExecutionInput {
pub schema: String,
pub input_digest: ContentDigest,
pub operation_id: String,
pub step_id: String,
pub input_sequence: u64,
pub state_digest: ContentDigest,
pub policy_digest: ContentDigest,
pub plan_digest: ContentDigest,
pub rendered_snapshot: ContentDigest,
pub prompt_measurement: ContentDigest,
pub provider_route: ContentDigest,
pub cache_prefix: Option<CachePrefixBoundary>,
}Expand description
The frozen identity of one provider execution input.
Fields§
§schema: String§input_digest: ContentDigest§operation_id: String§step_id: String§input_sequence: u64§state_digest: ContentDigest§policy_digest: ContentDigest§plan_digest: ContentDigest§rendered_snapshot: ContentDigest§prompt_measurement: ContentDigest§provider_route: ContentDigest§cache_prefix: Option<CachePrefixBoundary>Implementations§
Source§impl ContextExecutionInput
impl ContextExecutionInput
pub fn new( operation_id: impl Into<String>, step_id: impl Into<String>, input_sequence: u64, state: &ContextState, plan: &ContextPlan, rendered_snapshot: ContentDigest, prompt_measurement: ContentDigest, provider_route: ContentDigest, ) -> Result<ContextExecutionInput, ContextContractError>
pub fn verify(&self, plan: &ContextPlan) -> Result<(), ContextContractError>
Trait Implementations§
Source§impl Clone for ContextExecutionInput
impl Clone for ContextExecutionInput
Source§fn clone(&self) -> ContextExecutionInput
fn clone(&self) -> ContextExecutionInput
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 ContextExecutionInput
impl Debug for ContextExecutionInput
Source§impl<'de> Deserialize<'de> for ContextExecutionInput
impl<'de> Deserialize<'de> for ContextExecutionInput
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<ContextExecutionInput, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ContextExecutionInput, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for ContextExecutionInput
Source§impl PartialEq for ContextExecutionInput
impl PartialEq for ContextExecutionInput
Source§impl Serialize for ContextExecutionInput
impl Serialize for ContextExecutionInput
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 ContextExecutionInput
Auto Trait Implementations§
impl Freeze for ContextExecutionInput
impl RefUnwindSafe for ContextExecutionInput
impl Send for ContextExecutionInput
impl Sync for ContextExecutionInput
impl Unpin for ContextExecutionInput
impl UnsafeUnpin for ContextExecutionInput
impl UnwindSafe for ContextExecutionInput
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.