docs.rs failed to build guzzle-1.0.0
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Visit the last successful build:
guzzle-0.1.0
Guzzle
What is is?
Guzzle is a Custom Derive that will help you pass a stream of keys and values into a struct.
Usage
Derive Guzzle, then use the attribute tags to annotate your struct
use Guzzle;
// This is the deeply nested `TypeThatAlsoImplementsGuzzle`
// These are the parsers referenced above
// These are our keys and values
let example_data: = vec!;
// Create our object
let mut guzzle_example = default;
// Feed our keys and values to our object, capturing any that weren't consumed
let remaining_data: = example_data
.into_iter
.filter_map
.collect;
// All appropriate fields are now set
assert_eq!;
assert_eq!;
assert_eq!;
assert_eq!;
assert_eq!;
// Including the deeply nested field
assert!;
// Ignored data is left over
assert!;
assert_eq!;
Example Use Case
This project came out of a need to take Wordpress metadata data and put it into complex Rust structs.