pub struct MT4TransactionHeartbeat {
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 TransactionHeartbeat 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 MT4TransactionHeartbeat
impl MT4TransactionHeartbeat
pub fn new() -> MT4TransactionHeartbeat
sourcepub fn with_otype(self, x: String) -> Self
pub fn with_otype(self, x: String) -> Self
The string “HEARTBEAT”
- param String
- return MT4TransactionHeartbeat
sourcepub fn with_time(self, x: DateTime<Utc>) -> Self
pub fn with_time(self, x: DateTime<Utc>) -> Self
The date/time when the TransactionHeartbeat 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 MT4TransactionHeartbeat