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

wboayue / rust-ibapi / 25716583682
92%

Build:
DEFAULT BRANCH: main
Ran 12 May 2026 06:05AM UTC
Jobs 1
Files 127
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

12 May 2026 06:02AM UTC coverage: 91.71% (-0.006%) from 91.716%
25716583682

push

github

web-flow
contracts/types: impl_wire_enum! macro (typed-status sweep PR 3a) (#564)

* contracts/types: impl_wire_enum! macro (typed-status sweep PR 3a)

Dedupe Display/FromStr/ToField boilerplate for typed-status enums into
a single impl_wire_enum! macro. Each enum keeps as_str() + from_wire()
inherent (the data tables), the macro derives the three trait impls.

Orphan rule blocks a blanket impl<T: WireEnum> Display, so macro is the
only way to deduplicate (rule 25). Three current consumers — OptionRight
and LegAction retrofitted here; SecurityIdType lands in PR 3b. PR 4
(ExecutionFilterSide) and PR 5b (ExecutionSide) inherit the shape.

Test helpers check_wire_enum_round_trip<T> and check_wire_enum_rejects_unknown<T>
collapse the per-enum test shape — one helper covers Display + FromStr +
ToField round-trip in one loop, so the dedicated to_field tests are
deleted (covered transitively).

Zero behavior change. Public API unchanged.

* /simplify pass: tighten visibility + drop redundant assertions

- from_wire on OptionRight and LegAction: pub(crate) -> private (only
  consumer is the impl_wire_enum! macro expansion in the same module)
- impl_wire_enum! doc: drop overclaiming "every typed-status enum"
  language and the "(CLAUDE.md rule 25)" parenthetical (internal jargon
  on docs.rs surface)
- from_wire bodies: flip Some(match { _ => return None }) to idiomatic
  match { => Some(), _ => None }
- check_wire_enum_round_trip: drop redundant format!() assertion (same
  trait path as to_string())

Follow-up tracked: OrderStatusKind in src/orders/mod.rs is shape-identical
to the macro target -- adopt in a follow-up.

20 of 20 new or added lines in 1 file covered. (100.0%)

1 existing line in 1 file now uncovered.

18840 of 20543 relevant lines covered (91.71%)

27.36 hits per line

Coverage Regressions

Lines Coverage ∆ File
1
87.77
-0.18% src/transport/sync/mod.rs
Jobs
ID Job ID Ran Files Coverage
1 25716583682.1 12 May 2026 06:05AM UTC 127
91.71
GitHub Action Run
Source Files on build 25716583682
  • Tree
  • List 127
  • Changed 2
  • Source Changed 1
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #25716583682
  • 84ab1ee9 on github
  • Prev Build on main (#25716162121)
  • Next Build on main (#25750649523)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc