Skip to main content

CatalogPathPrefix

Trait CatalogPathPrefix 

Source
pub trait CatalogPathPrefix {
    // Required method
    fn path_prefix() -> &'static str;
}
Expand description

Trait for providing catalog path prefixes for different data types.

This trait enables type-safe organization of data within the catalog by providing a standardized way to determine the directory structure for each data type. Each data type maps to a specific subdirectory within the catalog’s data folder.

§Implementation

Types implementing this trait should return a static string that represents the directory name where data of that type should be stored.

§Examples

use nautilus_persistence::backend::catalog::CatalogPathPrefix;
use nautilus_model::data::QuoteTick;

assert_eq!(QuoteTick::path_prefix(), "quotes");

Required Methods§

Source

fn path_prefix() -> &'static str

Returns the path prefix (directory name) for this data type.

§Returns

A static string representing the directory name where this data type is stored.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl CatalogPathPrefix for AccountState

Source§

fn path_prefix() -> &'static str

Source§

impl CatalogPathPrefix for Bar

Source§

fn path_prefix() -> &'static str

Source§

impl CatalogPathPrefix for ExecutionMassStatus

Source§

fn path_prefix() -> &'static str

Source§

impl CatalogPathPrefix for FillReport

Source§

fn path_prefix() -> &'static str

Source§

impl CatalogPathPrefix for FundingRateUpdate

Source§

fn path_prefix() -> &'static str

Source§

impl CatalogPathPrefix for IndexPriceUpdate

Source§

fn path_prefix() -> &'static str

Source§

impl CatalogPathPrefix for InstrumentAny

Source§

fn path_prefix() -> &'static str

Source§

impl CatalogPathPrefix for InstrumentClose

Source§

fn path_prefix() -> &'static str

Source§

impl CatalogPathPrefix for InstrumentStatus

Source§

fn path_prefix() -> &'static str

Source§

impl CatalogPathPrefix for MarkPriceUpdate

Source§

fn path_prefix() -> &'static str

Source§

impl CatalogPathPrefix for OrderAccepted

Source§

fn path_prefix() -> &'static str

Source§

impl CatalogPathPrefix for OrderBookDelta

Source§

fn path_prefix() -> &'static str

Source§

impl CatalogPathPrefix for OrderBookDepth10

Source§

fn path_prefix() -> &'static str

Source§

impl CatalogPathPrefix for OrderCancelRejected

Source§

fn path_prefix() -> &'static str

Source§

impl CatalogPathPrefix for OrderCanceled

Source§

fn path_prefix() -> &'static str

Source§

impl CatalogPathPrefix for OrderDenied

Source§

fn path_prefix() -> &'static str

Source§

impl CatalogPathPrefix for OrderEmulated

Source§

fn path_prefix() -> &'static str

Source§

impl CatalogPathPrefix for OrderExpired

Source§

fn path_prefix() -> &'static str

Source§

impl CatalogPathPrefix for OrderFilled

Source§

fn path_prefix() -> &'static str

Source§

impl CatalogPathPrefix for OrderInitialized

Source§

fn path_prefix() -> &'static str

Source§

impl CatalogPathPrefix for OrderModifyRejected

Source§

fn path_prefix() -> &'static str

Source§

impl CatalogPathPrefix for OrderPendingCancel

Source§

fn path_prefix() -> &'static str

Source§

impl CatalogPathPrefix for OrderPendingUpdate

Source§

fn path_prefix() -> &'static str

Source§

impl CatalogPathPrefix for OrderRejected

Source§

fn path_prefix() -> &'static str

Source§

impl CatalogPathPrefix for OrderReleased

Source§

fn path_prefix() -> &'static str

Source§

impl CatalogPathPrefix for OrderSnapshot

Source§

fn path_prefix() -> &'static str

Source§

impl CatalogPathPrefix for OrderStatusReport

Source§

fn path_prefix() -> &'static str

Source§

impl CatalogPathPrefix for OrderSubmitted

Source§

fn path_prefix() -> &'static str

Source§

impl CatalogPathPrefix for OrderTriggered

Source§

fn path_prefix() -> &'static str

Source§

impl CatalogPathPrefix for OrderUpdated

Source§

fn path_prefix() -> &'static str

Source§

impl CatalogPathPrefix for PositionAdjusted

Source§

fn path_prefix() -> &'static str

Source§

impl CatalogPathPrefix for PositionChanged

Source§

fn path_prefix() -> &'static str

Source§

impl CatalogPathPrefix for PositionClosed

Source§

fn path_prefix() -> &'static str

Source§

impl CatalogPathPrefix for PositionOpened

Source§

fn path_prefix() -> &'static str

Source§

impl CatalogPathPrefix for PositionSnapshot

Source§

fn path_prefix() -> &'static str

Source§

impl CatalogPathPrefix for PositionStatusReport

Source§

fn path_prefix() -> &'static str

Source§

impl CatalogPathPrefix for QuoteTick

Source§

fn path_prefix() -> &'static str

Source§

impl CatalogPathPrefix for TradeTick

Source§

fn path_prefix() -> &'static str

Implementors§