```rust extern crate gdpr_consent; extern crate reqwest;
use gdprconsent::vendorlist::from_json; use std::error::Error;
fn main() -> Result<(), Box
match vendor_list.vendors.get(&32) {
Some(appnexus) => println!("{:?}", appnexus),
None => println!("AppNexus was not present in the vendor list."),
}
Ok(())
} ```
```rust extern crate chrono; extern crate gdpr_consent;
use gdprconsent::vendorconsent::{fromstr, tostr, VendorConsent}; use std::error::Error;
fn main() -> Result<(), Box
v1.last_updated = "2018-05-11T12:00:00.000Z".parse()?;
v1.vendor_consent.remove(9); // remove consent for Vendor ID 10
let serialized = to_str(VendorConsent::V1(v1))?;
assert_eq!(serialized, "BOEFEAyONlzmAAHABDENAI4AAAB9vABgASABQA");
Ok(())
} ```