words-to-data 0.3.0

Convert Legal Documents Into Diffable Data Structures
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use serde::{Deserialize, Serialize};

#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct CosponsorRecord {
    pub bioguide_id: String,
    pub date: String,
    pub withdrawn: bool,
}

#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct SponsorInfo {
    pub bill_id: String,
    pub sponsor: String,
    pub cosponsors: Vec<CosponsorRecord>,
}