pub struct StrategyDecisionRecord { /* private fields */ }Expand description
Bounded explanation and exact strict signals emitted at one decision boundary.
Implementations§
Source§impl StrategyDecisionRecord
impl StrategyDecisionRecord
pub fn new( sequence: u64, observed_through: NaiveDateTime, kind: StrategyDecisionKind, reason: impl Into<String>, related_trade_id: Option<String>, emitted_signals: Vec<RawSignal>, limits: StrategyRetentionLimits, ) -> Result<Self, StrategyDomainError>
pub fn sequence(&self) -> u64
pub fn observed_through(&self) -> NaiveDateTime
pub fn kind(&self) -> StrategyDecisionKind
pub fn reason(&self) -> &str
pub fn emitted_signals(&self) -> &[RawSignal]
Trait Implementations§
Source§impl Clone for StrategyDecisionRecord
impl Clone for StrategyDecisionRecord
Source§impl Debug for StrategyDecisionRecord
impl Debug for StrategyDecisionRecord
Auto Trait Implementations§
impl Freeze for StrategyDecisionRecord
impl RefUnwindSafe for StrategyDecisionRecord
impl Send for StrategyDecisionRecord
impl Sync for StrategyDecisionRecord
impl Unpin for StrategyDecisionRecord
impl UnsafeUnpin for StrategyDecisionRecord
impl UnwindSafe for StrategyDecisionRecord
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