pub struct DecisionOutcome<A> {
pub decision_id: DecisionId,
pub action: A,
pub reward: f64,
pub observed_at: u64,
pub model_generation: u64,
}Expand description
Delayed outcome submitted by a caller.
Fields§
§decision_id: DecisionIdDecision being completed.
action: AAction the outcome belongs to.
reward: f64Caller-defined finite reward.
observed_at: u64Caller-supplied outcome timestamp.
model_generation: u64Generation expected by the outcome producer.
Trait Implementations§
Source§impl<A: Clone> Clone for DecisionOutcome<A>
impl<A: Clone> Clone for DecisionOutcome<A>
Source§fn clone(&self) -> DecisionOutcome<A>
fn clone(&self) -> DecisionOutcome<A>
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<A: Debug> Debug for DecisionOutcome<A>
impl<A: Debug> Debug for DecisionOutcome<A>
Source§impl<A: PartialEq> PartialEq for DecisionOutcome<A>
impl<A: PartialEq> PartialEq for DecisionOutcome<A>
impl<A: PartialEq> StructuralPartialEq for DecisionOutcome<A>
Auto Trait Implementations§
impl<A> Freeze for DecisionOutcome<A>where
A: Freeze,
impl<A> RefUnwindSafe for DecisionOutcome<A>where
A: RefUnwindSafe,
impl<A> Send for DecisionOutcome<A>where
A: Send,
impl<A> Sync for DecisionOutcome<A>where
A: Sync,
impl<A> Unpin for DecisionOutcome<A>where
A: Unpin,
impl<A> UnsafeUnpin for DecisionOutcome<A>where
A: UnsafeUnpin,
impl<A> UnwindSafe for DecisionOutcome<A>where
A: 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