pub enum EvaluationScope {
Run {
run_id: RunId,
},
Turn {
session_id: Option<SessionId>,
turn_id: TurnId,
},
Session {
session_id: SessionId,
},
Custom {
scope_ref: EntityRef,
},
}Expand description
The durable boundary an evaluation is about.
Variants§
Run
Evaluate one run.
Turn
Evaluate one turn, optionally grouped by session.
Fields
Session
Evaluate one session timeline.
Custom
Evaluate a host-defined scope represented by an entity ref.
Trait Implementations§
Source§impl Clone for EvaluationScope
impl Clone for EvaluationScope
Source§fn clone(&self) -> EvaluationScope
fn clone(&self) -> EvaluationScope
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 EvaluationScope
impl Debug for EvaluationScope
Source§impl<'de> Deserialize<'de> for EvaluationScope
impl<'de> Deserialize<'de> for EvaluationScope
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
Source§impl PartialEq for EvaluationScope
impl PartialEq for EvaluationScope
Source§fn eq(&self, other: &EvaluationScope) -> bool
fn eq(&self, other: &EvaluationScope) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for EvaluationScope
impl Serialize for EvaluationScope
impl Eq for EvaluationScope
impl StructuralPartialEq for EvaluationScope
Auto Trait Implementations§
impl Freeze for EvaluationScope
impl RefUnwindSafe for EvaluationScope
impl Send for EvaluationScope
impl Sync for EvaluationScope
impl Unpin for EvaluationScope
impl UnsafeUnpin for EvaluationScope
impl UnwindSafe for EvaluationScope
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