Struct fxoanda::PricingHeartbeat
source · pub struct PricingHeartbeat {
pub otype: Option<String>,
pub time: Option<DateTime<Utc>>,
}
Fields§
§otype: Option<String>
The string “HEARTBEAT”
time: Option<DateTime<Utc>>
The date/time when the Heartbeat was created. format: The RFC 3339 representation is a string conforming to https://tools.ietf.org/rfc/rfc3339.txt. The Unix representation is a string representing the number of seconds since the Unix Epoch (January 1st, 1970 at UTC). The value is a fractional number, where the fractional part represents a fraction of a second (up to nine decimal places).
Implementations§
source§impl PricingHeartbeat
impl PricingHeartbeat
pub fn new() -> PricingHeartbeat
sourcepub fn with_otype(self, x: String) -> PricingHeartbeat
pub fn with_otype(self, x: String) -> PricingHeartbeat
The string “HEARTBEAT”
- param String
- return PricingHeartbeat
sourcepub fn with_time(self, x: DateTime<Utc>) -> PricingHeartbeat
pub fn with_time(self, x: DateTime<Utc>) -> PricingHeartbeat
The date/time when the Heartbeat was created. format: The RFC 3339 representation is a string conforming to https://tools.ietf.org/rfc/rfc3339.txt. The Unix representation is a string representing the number of seconds since the Unix Epoch (January 1st, 1970 at UTC). The value is a fractional number, where the fractional part represents a fraction of a second (up to nine decimal places).
- param DateTime
- return PricingHeartbeat