[][src]Struct tdb_core::storage::dtf_file_metadata::DTFFileMetadata

pub struct DTFFileMetadata {
    pub file_type: FileType,
    pub file_size: u64,
    pub exchange: String,
    pub currency: String,
    pub asset: String,
    pub asset_type: AssetType,
    pub first_epoch: u64,
    pub last_epoch: u64,
    pub total_updates: u64,
    pub assert_continuity: bool,
    pub discontinuities: Vec<(u64, u64)>,
    pub continuation_candles: bool,
    pub uuid: Uuid,
    pub filename: String,
    pub tags: Vec<String>,
    pub errors: Vec<String>,
}

Data structure for storing metadata for dtf files

Fields

file_type: FileType

file type is dtf

file_size: u64

File size on disk

exchange: String

Which exchange is the data from

currency: String

Name of currency

asset: String

Name of asset

asset_type: AssetType

Type of asset: Spot, Future, other derivatives

first_epoch: u64

Timestamp of the first update

last_epoch: u64

Timestamp of the Last update

total_updates: u64

Number of updates in the file

assert_continuity: bool

Is the data continuous, currently it's always true

discontinuities: Vec<(u64, u64)>

Discrete jumps in data, currently unimplemented!()

continuation_candles: bool

If there are continuation candles

uuid: Uuid

Unique ID of the file

filename: String

Filename

tags: Vec<String>

Tags

errors: Vec<String>

Errors in file

Methods

impl DTFFileMetadata[src]

pub fn new(fname: &str) -> Result<DTFFileMetadata, Error>[src]

Read dtf file metadata

Trait Implementations

impl Default for DTFFileMetadata[src]

impl FileMetadata for DTFFileMetadata[src]

impl Serialize for DTFFileMetadata[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,