Struct fefix::fix_values::Timestamp[][src]

pub struct Timestamp { /* fields omitted */ }
Expand description

Representation for UtcTimestamp.

Implementations

Combines date and time into a Timestamp.

Parses from a "YYYYMMDD" format.

Returns the current UTC system time with millisecond precision.

Returns the date of self.

Returns the time of self.

This is supported on crate feature utils-chrono only.

Attempts to convert self to a UTC chrono::DateTime. As chrono might perform additional checks that make such conversion impossible, the return value of this function might be None.

This is supported on crate feature utils-chrono only.

Attempts to convert self to a chrono::NaiveDateTime. As chrono might perform additional checks that make such conversion impossible, the return value of this function might be None.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

The error type that can arise during deserialization.

A type with values that customize the serialization algorithm, e.g. padding information. Read more

Writes self to buffer using custom serialization settings.

Parses and deserializes from data.

Writes self to buffer using default settings.

Like FixValue::deserialize, but it’s allowed to skip some amount of input checking. Invalid inputs might not trigger errors and instead be deserialized as random values. Read more

Serializes self to a Vec of bytes, allocated on the fly.

Allocates a String representation of self. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.