• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

wboayue / rust-ibapi / 43665986772
98%

Build:
DEFAULT BRANCH: main
Ran 15 Nov 2026 02:07AM UTC
Jobs 1
Files 160
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

15 Nov 2026 02:03AM UTC coverage: 97.764% (-0.03%) from 97.794%
43665986772

push

github

web-flow
6.0: type Contract::last_trade_date_or_contract_month as Option<Expiry> (#1218)

* 6.0: type Contract::last_trade_date_or_contract_month as Option<Expiry>

- Expiry { Date(ExpirationDate), Month(ContractMonth), Unknown(String) }; None replaces ""
- decode: lenient (Unknown for unseen shapes) since contracts ride streaming paths;
  contract_details splits the raw tag 4 text; bonds keep it as sent
- FromStr/TryFrom<&str> for ExpirationDate, ContractMonth, Expiry: strict, calendar-checked
- serde/utoipa as the wire string
- ContractBuilder: string setter parsed in build() (InvalidArgument), typed expiry()
- Contract::option takes ExpirationDate
- wire-facts: open-order echo normalizes tag 4 to the date; paper bond details stripped;
  weekend ES cancel wedges PendingCancel
- migration-6.0 §30, changelog

Closes #1214

* review fixes: lenient serde for 5.x JSON, empty expiry absent on wire

- Contract deserializes "" / null / absent expiry as None (5.x JSON loads)
- encoder drops an empty Unknown, as an unset field
- Expiry in utoipa schema guard
- integration ES front-month filter uses last_trade_date; drop 3 copies of expiry_text
- last_trade_date_check prints the wire text
- docs: Unknown also from deserializing; builder rejects "" and zoned form

* rules: enum-typing precedent #1218 (Unknown fallback on a date-shaped field)

* review fixes: Ord/Hash on ExpirationDate/ContractMonth, "" builder input is unset

- ExpirationDate/ContractMonth derive PartialOrd/Ord/Hash (chronological field order)
- ExpirationDate::from_str parses with time's [year][month][day] format, as the decoders do
- builder string setter: "" clears the field (5.x behavior), so a missing expiry names itself
- docs: Unknown is the unchecked escape hatch; §30 sorting note; stale yyyymmdd_from_now doc
- comment the deliberate overwrite in the contract-details split

105 of 114 new or added lines in 8 files covered. (92.11%)

20728 of 21202 relevant lines covered (97.76%)

545.31 hits per line

Uncovered Changes

Lines Coverage ∆ File
9
96.97
-2.65% src/contracts/types.rs
Jobs
ID Job ID Ran Files Coverage
1 43665986772.1 15 Nov 2026 02:07AM UTC 160
97.76
GitHub Action Run
Source Files on build 43665986772
  • Tree
  • List 160
  • Changed 14
  • Source Changed 13
  • Coverage Changed 7
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #43665986772
  • 7111b43f on github
  • Prev Build on main (#43642661452)
  • Next Build on main (#43666294323)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc