Struct fxoanda::TransactionHeartbeat
source · pub struct TransactionHeartbeat {
pub otype: Option<String>,
pub last_transaction_id: Option<String>,
pub time: Option<DateTime<Utc>>,
}
Fields§
§otype: Option<String>
The string “HEARTBEAT”
last_transaction_id: Option<String>
The ID of the most recent Transaction created for the Account format: String representation of the numerical OANDA-assigned TransactionID
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 TransactionHeartbeat
impl TransactionHeartbeat
pub fn new() -> TransactionHeartbeat
sourcepub fn with_otype(self, x: String) -> TransactionHeartbeat
pub fn with_otype(self, x: String) -> TransactionHeartbeat
The string “HEARTBEAT”
- param String
- return TransactionHeartbeat
sourcepub fn with_last_transaction_id(self, x: String) -> TransactionHeartbeat
pub fn with_last_transaction_id(self, x: String) -> TransactionHeartbeat
The ID of the most recent Transaction created for the Account format: String representation of the numerical OANDA-assigned TransactionID
- param String
- return TransactionHeartbeat
sourcepub fn with_time(self, x: DateTime<Utc>) -> TransactionHeartbeat
pub fn with_time(self, x: DateTime<Utc>) -> TransactionHeartbeat
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 TransactionHeartbeat