pub struct BacktestConfig {Show 38 fields
pub config_id: i64,
pub external_config_id: String,
pub strategy_id: Option<String>,
pub version_id: Option<String>,
pub parameters: Option<Struct>,
pub venue_accounts: Option<Struct>,
pub start_date: Option<Timestamp>,
pub end_date: Option<Timestamp>,
pub benchmark: Option<String>,
pub commission_settings: Option<Struct>,
pub slippage_model: Option<Struct>,
pub config_name: Option<String>,
pub description: Option<String>,
pub tags: Vec<String>,
pub is_template: Option<bool>,
pub template_type: Option<String>,
pub is_public: Option<bool>,
pub usage_count: Option<i32>,
pub last_used_at: Option<Timestamp>,
pub creator_name: Option<String>,
pub enable_precompute: Option<bool>,
pub precompute_settings: Option<Struct>,
pub config_version: Option<i32>,
pub parent_config_id: Option<i64>,
pub created_by: Option<String>,
pub created_at: Option<Timestamp>,
pub updated_at: Option<Timestamp>,
pub data_requirements: Vec<DataRequirement>,
pub oms_type: Option<String>,
pub reporting_currency: Option<String>,
pub debug_mode: Option<bool>,
pub graph_ir_schema_version: Option<String>,
pub graph_ir_hash: Option<String>,
pub graph_ir_uri: Option<String>,
pub required_graph_runner_contract_version: Option<String>,
pub market_data_bindings: HashMap<String, MarketDataBinding>,
pub market_data_routes: Vec<MarketDataRoute>,
pub market_data_execution: Option<MarketDataExecution>,
}Fields§
§config_id: i64§external_config_id: String§strategy_id: Option<String>§version_id: Option<String>§parameters: Option<Struct>§venue_accounts: Option<Struct>§start_date: Option<Timestamp>§end_date: Option<Timestamp>§benchmark: Option<String>§commission_settings: Option<Struct>§slippage_model: Option<Struct>§config_name: Option<String>§description: Option<String>§is_template: Option<bool>§template_type: Option<String>§is_public: Option<bool>§usage_count: Option<i32>§last_used_at: Option<Timestamp>§creator_name: Option<String>§enable_precompute: Option<bool>§precompute_settings: Option<Struct>§config_version: Option<i32>§parent_config_id: Option<i64>§created_by: Option<String>§created_at: Option<Timestamp>§updated_at: Option<Timestamp>§data_requirements: Vec<DataRequirement>§oms_type: Option<String>§reporting_currency: Option<String>§debug_mode: Option<bool>§graph_ir_schema_version: Option<String>§graph_ir_hash: Option<String>§graph_ir_uri: Option<String>§required_graph_runner_contract_version: Option<String>§market_data_bindings: HashMap<String, MarketDataBinding>§market_data_routes: Vec<MarketDataRoute>§market_data_execution: Option<MarketDataExecution>Implementations§
Source§impl BacktestConfig
impl BacktestConfig
Sourcepub fn benchmark(&self) -> &str
pub fn benchmark(&self) -> &str
Returns the value of benchmark, or the default value if benchmark is unset.
Sourcepub fn config_name(&self) -> &str
pub fn config_name(&self) -> &str
Returns the value of config_name, or the default value if config_name is unset.
Sourcepub fn description(&self) -> &str
pub fn description(&self) -> &str
Returns the value of description, or the default value if description is unset.
Sourcepub fn is_template(&self) -> bool
pub fn is_template(&self) -> bool
Returns the value of is_template, or the default value if is_template is unset.
Sourcepub fn template_type(&self) -> &str
pub fn template_type(&self) -> &str
Returns the value of template_type, or the default value if template_type is unset.
Sourcepub fn is_public(&self) -> bool
pub fn is_public(&self) -> bool
Returns the value of is_public, or the default value if is_public is unset.
Sourcepub fn usage_count(&self) -> i32
pub fn usage_count(&self) -> i32
Returns the value of usage_count, or the default value if usage_count is unset.
Sourcepub fn creator_name(&self) -> &str
pub fn creator_name(&self) -> &str
Returns the value of creator_name, or the default value if creator_name is unset.
Sourcepub fn enable_precompute(&self) -> bool
pub fn enable_precompute(&self) -> bool
Returns the value of enable_precompute, or the default value if enable_precompute is unset.
Sourcepub fn config_version(&self) -> i32
pub fn config_version(&self) -> i32
Returns the value of config_version, or the default value if config_version is unset.
Sourcepub fn parent_config_id(&self) -> i64
pub fn parent_config_id(&self) -> i64
Returns the value of parent_config_id, or the default value if parent_config_id is unset.
Sourcepub fn created_by(&self) -> &str
pub fn created_by(&self) -> &str
Returns the value of created_by, or the default value if created_by is unset.
Sourcepub fn oms_type(&self) -> &str
pub fn oms_type(&self) -> &str
Returns the value of oms_type, or the default value if oms_type is unset.
Sourcepub fn reporting_currency(&self) -> &str
pub fn reporting_currency(&self) -> &str
Returns the value of reporting_currency, or the default value if reporting_currency is unset.
Sourcepub fn debug_mode(&self) -> bool
pub fn debug_mode(&self) -> bool
Returns the value of debug_mode, or the default value if debug_mode is unset.
Sourcepub fn graph_ir_schema_version(&self) -> &str
pub fn graph_ir_schema_version(&self) -> &str
Returns the value of graph_ir_schema_version, or the default value if graph_ir_schema_version is unset.
Sourcepub fn graph_ir_hash(&self) -> &str
pub fn graph_ir_hash(&self) -> &str
Returns the value of graph_ir_hash, or the default value if graph_ir_hash is unset.
Sourcepub fn graph_ir_uri(&self) -> &str
pub fn graph_ir_uri(&self) -> &str
Returns the value of graph_ir_uri, or the default value if graph_ir_uri is unset.
Sourcepub fn required_graph_runner_contract_version(&self) -> &str
pub fn required_graph_runner_contract_version(&self) -> &str
Returns the value of required_graph_runner_contract_version, or the default value if required_graph_runner_contract_version is unset.
Sourcepub fn strategy_id(&self) -> &str
pub fn strategy_id(&self) -> &str
Returns the value of strategy_id, or the default value if strategy_id is unset.
Sourcepub fn version_id(&self) -> &str
pub fn version_id(&self) -> &str
Returns the value of version_id, or the default value if version_id is unset.
Trait Implementations§
Source§impl Clone for BacktestConfig
impl Clone for BacktestConfig
Source§fn clone(&self) -> BacktestConfig
fn clone(&self) -> BacktestConfig
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 BacktestConfig
impl Debug for BacktestConfig
Source§impl Default for BacktestConfig
impl Default for BacktestConfig
Source§impl Message for BacktestConfig
impl Message for BacktestConfig
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self. Read moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self.Source§impl PartialEq for BacktestConfig
impl PartialEq for BacktestConfig
impl StructuralPartialEq for BacktestConfig
Auto Trait Implementations§
impl Freeze for BacktestConfig
impl RefUnwindSafe for BacktestConfig
impl Send for BacktestConfig
impl Sync for BacktestConfig
impl Unpin for BacktestConfig
impl UnsafeUnpin for BacktestConfig
impl UnwindSafe for BacktestConfig
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
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,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request