pub struct RunManifest {Show 15 fields
pub run_id: RunId,
pub parent_run_id: Option<RunId>,
pub instance_id: String,
pub binary_hash: String,
pub schema_version: u32,
pub crate_versions: String,
pub feature_flags: Vec<String>,
pub adapter_versions: IndexMap<String, String>,
pub config_hash: String,
pub registered_components: RegisteredComponents,
pub seed: Option<u64>,
pub start_ts_init: UnixNanos,
pub end_ts_init: Option<UnixNanos>,
pub high_watermark: u64,
pub status: RunStatus,
}Expand description
Per-run manifest persisted alongside captured entries.
Every field is recorded at run start; end_ts_init, high_watermark, and status are
updated when the run is sealed.
Fields§
§run_id: RunIdThe id of this run.
parent_run_id: Option<RunId>The id of the predecessor run that this run resumes from, if any.
instance_id: StringThe id of the trading instance owning this run.
binary_hash: StringA hex-encoded hash of the trader binary.
schema_version: u32Bumps when the entry payload schema changes.
crate_versions: StringA hex-encoded hash of Cargo.lock or an equivalent crate version manifest.
feature_flags: Vec<String>The active Cargo features for the trader binary.
adapter_versions: IndexMap<String, String>Per-adapter version stamp keyed by adapter name.
config_hash: StringA hex-encoded hash of the kernel configuration.
registered_components: RegisteredComponentsRegistered actor, strategy, and algorithm identities along with subscription bindings.
seed: Option<u64>The deterministic seed, populated when the run executes under a seeded mode.
start_ts_init: UnixNanosThe first ts_init observed by the writer for this run.
end_ts_init: Option<UnixNanos>The last ts_init observed by the writer for this run, populated on seal.
high_watermark: u64The largest seq durably acknowledged by the backend at end of run.
status: RunStatusThe lifecycle state of this run.
Implementations§
Source§impl RunManifest
impl RunManifest
Sourcepub const fn is_sealed(&self) -> bool
pub const fn is_sealed(&self) -> bool
Returns true once status is anything other than RunStatus::Running.
Trait Implementations§
Source§impl Clone for RunManifest
impl Clone for RunManifest
Source§fn clone(&self) -> RunManifest
fn clone(&self) -> RunManifest
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for RunManifest
impl Debug for RunManifest
Source§impl<'de> Deserialize<'de> for RunManifest
impl<'de> Deserialize<'de> for RunManifest
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>,
impl Eq for RunManifest
Source§impl PartialEq for RunManifest
impl PartialEq for RunManifest
Source§fn eq(&self, other: &RunManifest) -> bool
fn eq(&self, other: &RunManifest) -> bool
self and other values to be equal, and is used by ==.Source§impl Serialize for RunManifest
impl Serialize for RunManifest
impl StructuralPartialEq for RunManifest
Auto Trait Implementations§
impl Freeze for RunManifest
impl RefUnwindSafe for RunManifest
impl Send for RunManifest
impl Sync for RunManifest
impl Unpin for RunManifest
impl UnsafeUnpin for RunManifest
impl UnwindSafe for RunManifest
Blanket Implementations§
impl<T> Allocation for T
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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>,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more