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

serde-rs / serde / 1010
38%

Build:
DEFAULT BRANCH: master
Ran 06 Jun 2016 08:55AM UTC
Jobs 2
Files 8
Run time 3min
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

pending completion
1010

push

travis-ci

homu
Auto merge of #352 - dtolnay:where, r=oli-obk

Attribute for handwritten where clauses

Addresses (2) and (3) in https://github.com/serde-rs/serde/issues/336#issuecomment-220378916.

- If there is a `#[serde(bound="...")]` attribute on the type, use the union of that and the actual type's `where` clause as the `where` clause for the impl and do not attempt to generate any additional `where` clauses whatsoever.
- If there is a `#[serde(bound="...")]` attribute on a field, use that and do not attempt to generate any additional `where` clauses for the field.

The `bound` attribute behaves similar to `rename` in that you can specify a single attribute that applies to both ser and de, or individual ones.

```
#[serde(bound="D: Serialize + Deserialize")]

#[serde(bound(serialize="D: Serialize", deserialize="D: Deserialize"))]
```

EDIT: now addresses (4) from https://github.com/serde-rs/serde/issues/336#issuecomment-220378916 as well.

- If a field contains direct recursion, do not generate any bounds based on that field except from `bound` attributes.

2809 of 4068 relevant lines covered (69.05%)

1.34 hits per line

Jobs
ID Job ID Ran Files Coverage
1 1010.1 06 Jun 2016 08:58AM UTC 0
68.99
Travis Job 1010.1
4 1010.4 06 Jun 2016 08:55AM UTC 0
70.05
Travis Job 1010.4
Source Files on build 1010
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #1010
  • 4b472be5 on github
  • Prev Build on master (#1004)
  • Next Build on master (#1013)
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