Skip to content

Instantly share code, notes, and snippets.

@marcusbuffett
Created May 4, 2021 21:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save marcusbuffett/db91d0e914d7f4a2413b079fd2b105c8 to your computer and use it in GitHub Desktop.
Save marcusbuffett/db91d0e914d7f4a2413b079fd2b105c8 to your computer and use it in GitHub Desktop.
#[derive(GraphQLObject, Copy, Clone, Debug)]
struct Dp02 {
computers_and_internet_use: ComputersAndInternetUse,
ancestry: Ancestry,
language_spoken_at_home: LanguageSpokenAtHome,
world_region_of_birth_of_foreign_born: WorldRegionOfBirthOfForeignBorn,
year_of_entry: YearOfEntry,
us_citizenship_status: UsCitizenshipStatus,
place_of_birth: PlaceOfBirth,
residence_1_year_ago: Residence1YearAgo,
disability_status_of_the_civilian_noninstitutionalized_population:
DisabilityStatusOfTheCivilianNoninstitutionalizedPopulation,
veteran_status: VeteranStatus,
educational_attainment: EducationalAttainment,
school_enrollment: SchoolEnrollment,
grandparents: Grandparents,
fertility: Fertility,
marital_status: MaritalStatus,
relationship: Relationship,
households_by_type: HouseholdsByType,
}
impl Dp02 {
pub fn new<F>(read_field: F) -> Self
where
F: Fn(&str) -> Option<i32> + Clone,
{
Self {
computers_and_internet_use: ComputersAndInternetUse::new(read_field.clone()),
ancestry: Ancestry::new(read_field.clone()),
language_spoken_at_home: LanguageSpokenAtHome::new(read_field.clone()),
world_region_of_birth_of_foreign_born: WorldRegionOfBirthOfForeignBorn::new(
read_field.clone(),
),
year_of_entry: YearOfEntry::new(read_field.clone()),
us_citizenship_status: UsCitizenshipStatus::new(read_field.clone()),
place_of_birth: PlaceOfBirth::new(read_field.clone()),
residence_1_year_ago: Residence1YearAgo::new(read_field.clone()),
disability_status_of_the_civilian_noninstitutionalized_population:
DisabilityStatusOfTheCivilianNoninstitutionalizedPopulation::new(read_field.clone()),
veteran_status: VeteranStatus::new(read_field.clone()),
educational_attainment: EducationalAttainment::new(read_field.clone()),
school_enrollment: SchoolEnrollment::new(read_field.clone()),
grandparents: Grandparents::new(read_field.clone()),
fertility: Fertility::new(read_field.clone()),
marital_status: MaritalStatus::new(read_field.clone()),
relationship: Relationship::new(read_field.clone()),
households_by_type: HouseholdsByType::new(read_field.clone()),
}
}
}
#[derive(GraphQLObject, Copy, Clone, Debug)]
struct HouseholdsByType {
total_households: TotalHouseholds,
}
impl HouseholdsByType {
pub fn new<F>(read_field: F) -> Self
where
F: Fn(&str) -> Option<i32> + Clone,
{
Self {
total_households: TotalHouseholds::new(read_field.clone()),
}
}
}
#[derive(GraphQLObject, Copy, Clone, Debug)]
struct TotalHouseholds {
value: Option<i32>,
average_family_size: Option<i32>,
average_household_size: Option<i32>,
households_with_one_or_more_people_65_years_and_over: Option<i32>,
households_with_one_or_more_people_under_18_years: Option<i32>,
female_householder_no_spousepartner_present: FemaleHouseholderNoSpousepartnerPresent,
male_householder_no_spousepartner_present: MaleHouseholderNoSpousepartnerPresent,
cohabiting_couple_household: CohabitingCoupleHousehold,
marriedcouple_family: MarriedcoupleFamily,
}
impl TotalHouseholds {
pub fn new<F>(read_field: F) -> Self
where
F: Fn(&str) -> Option<i32> + Clone,
{
Self { value : read_field ("Estimate!!HOUSEHOLDS BY TYPE!!Total households") , average_family_size : read_field ("Estimate!!HOUSEHOLDS BY TYPE!!Total households!!Average family size") , average_household_size : read_field ("Estimate!!HOUSEHOLDS BY TYPE!!Total households!!Average household size") , households_with_one_or_more_people_65_years_and_over : read_field ("Estimate!!HOUSEHOLDS BY TYPE!!Total households!!Households with one or more people 65 years and over") , households_with_one_or_more_people_under_18_years : read_field ("Estimate!!HOUSEHOLDS BY TYPE!!Total households!!Households with one or more people under 18 years") , female_householder_no_spousepartner_present : FemaleHouseholderNoSpousepartnerPresent :: new (read_field . clone ()) , male_householder_no_spousepartner_present : MaleHouseholderNoSpousepartnerPresent :: new (read_field . clone ()) , cohabiting_couple_household : CohabitingCoupleHousehold :: new (read_field . clone ()) , marriedcouple_family : MarriedcoupleFamily :: new (read_field . clone ()) , }
}
}
#[derive(GraphQLObject, Copy, Clone, Debug)]
struct MarriedcoupleFamily {
value: Option<i32>,
with_own_children_of_the_householder_under_18_years: Option<i32>,
}
impl MarriedcoupleFamily {
pub fn new<F>(read_field: F) -> Self
where
F: Fn(&str) -> Option<i32> + Clone,
{
Self { value : read_field ("Estimate!!HOUSEHOLDS BY TYPE!!Total households!!Married-couple family") , with_own_children_of_the_householder_under_18_years : read_field ("Estimate!!HOUSEHOLDS BY TYPE!!Total households!!Married-couple family!!With own children of the householder under 18 years") , }
}
}
#[derive(GraphQLObject, Copy, Clone, Debug)]
struct CohabitingCoupleHousehold {
value: Option<i32>,
with_own_children_of_the_householder_under_18_years: Option<i32>,
}
impl CohabitingCoupleHousehold {
pub fn new<F>(read_field: F) -> Self
where
F: Fn(&str) -> Option<i32> + Clone,
{
Self { value : read_field ("Estimate!!HOUSEHOLDS BY TYPE!!Total households!!Cohabiting couple household") , with_own_children_of_the_householder_under_18_years : read_field ("Estimate!!HOUSEHOLDS BY TYPE!!Total households!!Cohabiting couple household!!With own children of the householder under 18 years") , }
}
}
#[derive(GraphQLObject, Copy, Clone, Debug)]
struct MaleHouseholderNoSpousepartnerPresent {
value: Option<i32>,
householder_living_alone: HouseholderLivingAlone,
with_own_children_of_the_householder_under_18_years: Option<i32>,
}
impl MaleHouseholderNoSpousepartnerPresent {
pub fn new<F>(read_field: F) -> Self
where
F: Fn(&str) -> Option<i32> + Clone,
{
Self { value : read_field ("Estimate!!HOUSEHOLDS BY TYPE!!Total households!!Male householder, no spouse/partner present") , householder_living_alone : HouseholderLivingAlone :: new (read_field . clone ()) , with_own_children_of_the_householder_under_18_years : read_field ("Estimate!!HOUSEHOLDS BY TYPE!!Total households!!Male householder, no spouse/partner present!!With own children of the householder under 18 years") , }
}
}
#[derive(GraphQLObject, Copy, Clone, Debug)]
struct HouseholderLivingAlone {
value: Option<i32>,
age_65_and_over: Option<i32>,
}
impl HouseholderLivingAlone {
pub fn new<F>(read_field: F) -> Self
where
F: Fn(&str) -> Option<i32> + Clone,
{
Self { value : read_field ("Estimate!!HOUSEHOLDS BY TYPE!!Total households!!Male householder, no spouse/partner present!!Householder living alone") , age_65_and_over : read_field ("Estimate!!HOUSEHOLDS BY TYPE!!Total households!!Male householder, no spouse/partner present!!Householder living alone!!65 years and over") , }
}
}
#[derive(GraphQLObject, Copy, Clone, Debug)]
struct FemaleHouseholderNoSpousepartnerPresent {
value: Option<i32>,
householder_living_alone: HouseholderLivingAlone1,
with_own_children_of_the_householder_under_18_years: Option<i32>,
}
impl FemaleHouseholderNoSpousepartnerPresent {
pub fn new<F>(read_field: F) -> Self
where
F: Fn(&str) -> Option<i32> + Clone,
{
Self { value : read_field ("Estimate!!HOUSEHOLDS BY TYPE!!Total households!!Female householder, no spouse/partner present") , householder_living_alone : HouseholderLivingAlone1 :: new (read_field . clone ()) , with_own_children_of_the_householder_under_18_years : read_field ("Estimate!!HOUSEHOLDS BY TYPE!!Total households!!Female householder, no spouse/partner present!!With own children of the householder under 18 years") , }
}
}
#[derive(GraphQLObject, Copy, Clone, Debug)]
struct HouseholderLivingAlone1 {
value: Option<i32>,
age_65_and_over: Option<i32>,
}
impl HouseholderLivingAlone1 {
pub fn new<F>(read_field: F) -> Self
where
F: Fn(&str) -> Option<i32> + Clone,
{
Self { value : read_field ("Estimate!!HOUSEHOLDS BY TYPE!!Total households!!Female householder, no spouse/partner present!!Householder living alone") , age_65_and_over : read_field ("Estimate!!HOUSEHOLDS BY TYPE!!Total households!!Female householder, no spouse/partner present!!Householder living alone!!65 years and over") , }
}
}
#[derive(GraphQLObject, Copy, Clone, Debug)]
struct Relationship {
population_in_households: PopulationInHouseholds,
}
impl Relationship {
pub fn new<F>(read_field: F) -> Self
where
F: Fn(&str) -> Option<i32> + Clone,
{
Self {
population_in_households: PopulationInHouseholds::new(read_field.clone()),
}
}
}
#[derive(GraphQLObject, Copy, Clone, Debug)]
struct PopulationInHouseholds {
value: Option<i32>,
other_nonrelatives: Option<i32>,
other_relatives: Option<i32>,
child: Option<i32>,
unmarried_partner: Option<i32>,
spouse: Option<i32>,
householder: Option<i32>,
}
impl PopulationInHouseholds {
pub fn new<F>(read_field: F) -> Self
where
F: Fn(&str) -> Option<i32> + Clone,
{
Self {
value: read_field("Estimate!!RELATIONSHIP!!Population in households"),
other_nonrelatives: read_field(
"Estimate!!RELATIONSHIP!!Population in households!!Other nonrelatives",
),
other_relatives: read_field(
"Estimate!!RELATIONSHIP!!Population in households!!Other relatives",
),
child: read_field("Estimate!!RELATIONSHIP!!Population in households!!Child"),
unmarried_partner: read_field(
"Estimate!!RELATIONSHIP!!Population in households!!Unmarried partner",
),
spouse: read_field("Estimate!!RELATIONSHIP!!Population in households!!Spouse"),
householder: read_field(
"Estimate!!RELATIONSHIP!!Population in households!!Householder",
),
}
}
}
#[derive(GraphQLObject, Copy, Clone, Debug)]
struct MaritalStatus {
females_15_years_and_over: Females15YearsAndOver,
males_15_years_and_over: Males15YearsAndOver,
}
impl MaritalStatus {
pub fn new<F>(read_field: F) -> Self
where
F: Fn(&str) -> Option<i32> + Clone,
{
Self {
females_15_years_and_over: Females15YearsAndOver::new(read_field.clone()),
males_15_years_and_over: Males15YearsAndOver::new(read_field.clone()),
}
}
}
#[derive(GraphQLObject, Copy, Clone, Debug)]
struct Males15YearsAndOver {
value: Option<i32>,
divorced: Option<i32>,
widowed: Option<i32>,
separated: Option<i32>,
now_married_except_separated: Option<i32>,
never_married: Option<i32>,
}
impl Males15YearsAndOver {
pub fn new<F>(read_field: F) -> Self
where
F: Fn(&str) -> Option<i32> + Clone,
{
Self {
value: read_field("Estimate!!MARITAL STATUS!!Males 15 years and over"),
divorced: read_field("Estimate!!MARITAL STATUS!!Males 15 years and over!!Divorced"),
widowed: read_field("Estimate!!MARITAL STATUS!!Males 15 years and over!!Widowed"),
separated: read_field("Estimate!!MARITAL STATUS!!Males 15 years and over!!Separated"),
now_married_except_separated: read_field(
"Estimate!!MARITAL STATUS!!Males 15 years and over!!Now married, except separated",
),
never_married: read_field(
"Estimate!!MARITAL STATUS!!Males 15 years and over!!Never married",
),
}
}
}
#[derive(GraphQLObject, Copy, Clone, Debug)]
struct Females15YearsAndOver {
value: Option<i32>,
divorced: Option<i32>,
widowed: Option<i32>,
separated: Option<i32>,
now_married_except_separated: Option<i32>,
never_married: Option<i32>,
}
impl Females15YearsAndOver {
pub fn new<F>(read_field: F) -> Self
where
F: Fn(&str) -> Option<i32> + Clone,
{
Self { value : read_field ("Estimate!!MARITAL STATUS!!Females 15 years and over") , divorced : read_field ("Estimate!!MARITAL STATUS!!Females 15 years and over!!Divorced") , widowed : read_field ("Estimate!!MARITAL STATUS!!Females 15 years and over!!Widowed") , separated : read_field ("Estimate!!MARITAL STATUS!!Females 15 years and over!!Separated") , now_married_except_separated : read_field ("Estimate!!MARITAL STATUS!!Females 15 years and over!!Now married, except separated") , never_married : read_field ("Estimate!!MARITAL STATUS!!Females 15 years and over!!Never married") , }
}
}
#[derive(GraphQLObject, Copy, Clone, Debug)]
struct Fertility {
number_of_women_15_to_50_years_old_who_had_a_birth_in_the_past_12_months:
NumberOfWomen15To50YearsOldWhoHadABirthInThePast12Months,
}
impl Fertility {
pub fn new<F>(read_field: F) -> Self
where
F: Fn(&str) -> Option<i32> + Clone,
{
Self {
number_of_women_15_to_50_years_old_who_had_a_birth_in_the_past_12_months:
NumberOfWomen15To50YearsOldWhoHadABirthInThePast12Months::new(read_field.clone()),
}
}
}
#[derive(GraphQLObject, Copy, Clone, Debug)]
struct NumberOfWomen15To50YearsOldWhoHadABirthInThePast12Months {
value: Option<i32>,
per_1000_women_35_to_50_years_old: Option<i32>,
per_1000_women_20_to_34_years_old: Option<i32>,
per_1000_women_15_to_19_years_old: Option<i32>,
per_1000_women_15_to_50_years_old: Option<i32>,
unmarried_women_widowed_divorced_and_never_married:
UnmarriedWomenWidowedDivorcedAndNeverMarried,
}
impl NumberOfWomen15To50YearsOldWhoHadABirthInThePast12Months {
pub fn new<F>(read_field: F) -> Self
where
F: Fn(&str) -> Option<i32> + Clone,
{
Self { value : read_field ("Estimate!!FERTILITY!!Number of women 15 to 50 years old who had a birth in the past 12 months") , per_1000_women_35_to_50_years_old : read_field ("Estimate!!FERTILITY!!Number of women 15 to 50 years old who had a birth in the past 12 months!!Per 1,000 women 35 to 50 years old") , per_1000_women_20_to_34_years_old : read_field ("Estimate!!FERTILITY!!Number of women 15 to 50 years old who had a birth in the past 12 months!!Per 1,000 women 20 to 34 years old") , per_1000_women_15_to_19_years_old : read_field ("Estimate!!FERTILITY!!Number of women 15 to 50 years old who had a birth in the past 12 months!!Per 1,000 women 15 to 19 years old") , per_1000_women_15_to_50_years_old : read_field ("Estimate!!FERTILITY!!Number of women 15 to 50 years old who had a birth in the past 12 months!!Per 1,000 women 15 to 50 years old") , unmarried_women_widowed_divorced_and_never_married : UnmarriedWomenWidowedDivorcedAndNeverMarried :: new (read_field . clone ()) , }
}
}
#[derive(GraphQLObject, Copy, Clone, Debug)]
struct UnmarriedWomenWidowedDivorcedAndNeverMarried {
value: Option<i32>,
per_1000_unmarried_women: Option<i32>,
}
impl UnmarriedWomenWidowedDivorcedAndNeverMarried {
pub fn new<F>(read_field: F) -> Self
where
F: Fn(&str) -> Option<i32> + Clone,
{
Self { value : read_field ("Estimate!!FERTILITY!!Number of women 15 to 50 years old who had a birth in the past 12 months!!Unmarried women (widowed, divorced, and never married)") , per_1000_unmarried_women : read_field ("Estimate!!FERTILITY!!Number of women 15 to 50 years old who had a birth in the past 12 months!!Unmarried women (widowed, divorced, and never married)!!Per 1,000 unmarried women") , }
}
}
#[derive(GraphQLObject, Copy, Clone, Debug)]
struct Grandparents {
number_of_grandparents_responsible_for_own_grandchildren_under_18_years:
NumberOfGrandparentsResponsibleForOwnGrandchildrenUnder18Years,
number_of_grandparents_living_with_own_grandchildren_under_18_years:
NumberOfGrandparentsLivingWithOwnGrandchildrenUnder18Years,
}
impl Grandparents {
pub fn new<F>(read_field: F) -> Self
where
F: Fn(&str) -> Option<i32> + Clone,
{
Self {
number_of_grandparents_responsible_for_own_grandchildren_under_18_years:
NumberOfGrandparentsResponsibleForOwnGrandchildrenUnder18Years::new(
read_field.clone(),
),
number_of_grandparents_living_with_own_grandchildren_under_18_years:
NumberOfGrandparentsLivingWithOwnGrandchildrenUnder18Years::new(read_field.clone()),
}
}
}
#[derive(GraphQLObject, Copy, Clone, Debug)]
struct NumberOfGrandparentsLivingWithOwnGrandchildrenUnder18Years {
value: Option<i32>,
years_responsible_for_grandchildren: YearsResponsibleForGrandchildren,
grandparents_responsible_for_grandchildren: Option<i32>,
}
impl NumberOfGrandparentsLivingWithOwnGrandchildrenUnder18Years {
pub fn new<F>(read_field: F) -> Self
where
F: Fn(&str) -> Option<i32> + Clone,
{
Self { value : read_field ("Estimate!!GRANDPARENTS!!Number of grandparents living with own grandchildren under 18 years") , years_responsible_for_grandchildren : YearsResponsibleForGrandchildren :: new (read_field . clone ()) , grandparents_responsible_for_grandchildren : read_field ("Estimate!!GRANDPARENTS!!Number of grandparents living with own grandchildren under 18 years!!Grandparents responsible for grandchildren") , }
}
}
#[derive(GraphQLObject, Copy, Clone, Debug)]
struct YearsResponsibleForGrandchildren {
value: Option<i32>,
years_5_or_more: Option<i32>,
years_3_or_4: Option<i32>,
years_1_or_2: Option<i32>,
less_than_1_year: Option<i32>,
}
impl YearsResponsibleForGrandchildren {
pub fn new<F>(read_field: F) -> Self
where
F: Fn(&str) -> Option<i32> + Clone,
{
Self { value : read_field ("Estimate!!GRANDPARENTS!!Number of grandparents living with own grandchildren under 18 years!!Years responsible for grandchildren") , years_5_or_more : read_field ("Estimate!!GRANDPARENTS!!Number of grandparents living with own grandchildren under 18 years!!Years responsible for grandchildren!!5 or more years") , years_3_or_4 : read_field ("Estimate!!GRANDPARENTS!!Number of grandparents living with own grandchildren under 18 years!!Years responsible for grandchildren!!3 or 4 years") , years_1_or_2 : read_field ("Estimate!!GRANDPARENTS!!Number of grandparents living with own grandchildren under 18 years!!Years responsible for grandchildren!!1 or 2 years") , less_than_1_year : read_field ("Estimate!!GRANDPARENTS!!Number of grandparents living with own grandchildren under 18 years!!Years responsible for grandchildren!!Less than 1 year") , }
}
}
#[derive(GraphQLObject, Copy, Clone, Debug)]
struct NumberOfGrandparentsResponsibleForOwnGrandchildrenUnder18Years {
value: Option<i32>,
who_are_married: Option<i32>,
who_are_female: Option<i32>,
}
impl NumberOfGrandparentsResponsibleForOwnGrandchildrenUnder18Years {
pub fn new<F>(read_field: F) -> Self
where
F: Fn(&str) -> Option<i32> + Clone,
{
Self { value : read_field ("Estimate!!GRANDPARENTS!!Number of grandparents responsible for own grandchildren under 18 years") , who_are_married : read_field ("Estimate!!GRANDPARENTS!!Number of grandparents responsible for own grandchildren under 18 years!!Who are married") , who_are_female : read_field ("Estimate!!GRANDPARENTS!!Number of grandparents responsible for own grandchildren under 18 years!!Who are female") , }
}
}
#[derive(GraphQLObject, Copy, Clone, Debug)]
struct SchoolEnrollment {
population_3_years_and_over_enrolled_in_school: Population3YearsAndOverEnrolledInSchool,
}
impl SchoolEnrollment {
pub fn new<F>(read_field: F) -> Self
where
F: Fn(&str) -> Option<i32> + Clone,
{
Self {
population_3_years_and_over_enrolled_in_school:
Population3YearsAndOverEnrolledInSchool::new(read_field.clone()),
}
}
}
#[derive(GraphQLObject, Copy, Clone, Debug)]
struct Population3YearsAndOverEnrolledInSchool {
value: Option<i32>,
college_or_graduate_school: Option<i32>,
high_school_grades_912: Option<i32>,
elementary_school_grades_18: Option<i32>,
kindergarten: Option<i32>,
nursery_school_preschool: Option<i32>,
}
impl Population3YearsAndOverEnrolledInSchool {
pub fn new<F>(read_field: F) -> Self
where
F: Fn(&str) -> Option<i32> + Clone,
{
Self { value : read_field ("Estimate!!SCHOOL ENROLLMENT!!Population 3 years and over enrolled in school") , college_or_graduate_school : read_field ("Estimate!!SCHOOL ENROLLMENT!!Population 3 years and over enrolled in school!!College or graduate school") , high_school_grades_912 : read_field ("Estimate!!SCHOOL ENROLLMENT!!Population 3 years and over enrolled in school!!High school (grades 9-12)") , elementary_school_grades_18 : read_field ("Estimate!!SCHOOL ENROLLMENT!!Population 3 years and over enrolled in school!!Elementary school (grades 1-8)") , kindergarten : read_field ("Estimate!!SCHOOL ENROLLMENT!!Population 3 years and over enrolled in school!!Kindergarten") , nursery_school_preschool : read_field ("Estimate!!SCHOOL ENROLLMENT!!Population 3 years and over enrolled in school!!Nursery school, preschool") , }
}
}
#[derive(GraphQLObject, Copy, Clone, Debug)]
struct EducationalAttainment {
population_25_years_and_over: Population25YearsAndOver,
}
impl EducationalAttainment {
pub fn new<F>(read_field: F) -> Self
where
F: Fn(&str) -> Option<i32> + Clone,
{
Self {
population_25_years_and_over: Population25YearsAndOver::new(read_field.clone()),
}
}
}
#[derive(GraphQLObject, Copy, Clone, Debug)]
struct Population25YearsAndOver {
value: Option<i32>,
bachelors_degree_or_higher: Option<i32>,
high_school_graduate_or_higher: Option<i32>,
graduate_or_professional_degree: Option<i32>,
bachelors_degree: Option<i32>,
associates_degree: Option<i32>,
some_college_no_degree: Option<i32>,
high_school_graduate_includes_equivalency: Option<i32>,
no_diploma_9_th_to_12_th_grade: Option<i32>,
less_than_9_th_grade: Option<i32>,
}
impl Population25YearsAndOver {
pub fn new<F>(read_field: F) -> Self
where
F: Fn(&str) -> Option<i32> + Clone,
{
Self { value : read_field ("Estimate!!EDUCATIONAL ATTAINMENT!!Population 25 years and over") , bachelors_degree_or_higher : read_field ("Estimate!!EDUCATIONAL ATTAINMENT!!Population 25 years and over!!Bachelor's degree or higher") , high_school_graduate_or_higher : read_field ("Estimate!!EDUCATIONAL ATTAINMENT!!Population 25 years and over!!High school graduate or higher") , graduate_or_professional_degree : read_field ("Estimate!!EDUCATIONAL ATTAINMENT!!Population 25 years and over!!Graduate or professional degree") , bachelors_degree : read_field ("Estimate!!EDUCATIONAL ATTAINMENT!!Population 25 years and over!!Bachelor's degree") , associates_degree : read_field ("Estimate!!EDUCATIONAL ATTAINMENT!!Population 25 years and over!!Associate's degree") , some_college_no_degree : read_field ("Estimate!!EDUCATIONAL ATTAINMENT!!Population 25 years and over!!Some college, no degree") , high_school_graduate_includes_equivalency : read_field ("Estimate!!EDUCATIONAL ATTAINMENT!!Population 25 years and over!!High school graduate (includes equivalency)") , no_diploma_9_th_to_12_th_grade : read_field ("Estimate!!EDUCATIONAL ATTAINMENT!!Population 25 years and over!!9th to 12th grade, no diploma") , less_than_9_th_grade : read_field ("Estimate!!EDUCATIONAL ATTAINMENT!!Population 25 years and over!!Less than 9th grade") , }
}
}
#[derive(GraphQLObject, Copy, Clone, Debug)]
struct VeteranStatus {
civilian_population_18_years_and_over: CivilianPopulation18YearsAndOver,
}
impl VeteranStatus {
pub fn new<F>(read_field: F) -> Self
where
F: Fn(&str) -> Option<i32> + Clone,
{
Self {
civilian_population_18_years_and_over: CivilianPopulation18YearsAndOver::new(
read_field.clone(),
),
}
}
}
#[derive(GraphQLObject, Copy, Clone, Debug)]
struct CivilianPopulation18YearsAndOver {
value: Option<i32>,
civilian_veterans: Option<i32>,
}
impl CivilianPopulation18YearsAndOver {
pub fn new<F>(read_field: F) -> Self
where
F: Fn(&str) -> Option<i32> + Clone,
{
Self { value : read_field ("Estimate!!VETERAN STATUS!!Civilian population 18 years and over") , civilian_veterans : read_field ("Estimate!!VETERAN STATUS!!Civilian population 18 years and over!!Civilian veterans") , }
}
}
#[derive(GraphQLObject, Copy, Clone, Debug)]
struct DisabilityStatusOfTheCivilianNoninstitutionalizedPopulation {
age_65_and_over: Age65AndOver,
age_18_to_64: Age18To64,
under_18_years: Under18Years,
total_civilian_noninstitutionalized_population: TotalCivilianNoninstitutionalizedPopulation,
}
impl DisabilityStatusOfTheCivilianNoninstitutionalizedPopulation {
pub fn new<F>(read_field: F) -> Self
where
F: Fn(&str) -> Option<i32> + Clone,
{
Self {
age_65_and_over: Age65AndOver::new(read_field.clone()),
age_18_to_64: Age18To64::new(read_field.clone()),
under_18_years: Under18Years::new(read_field.clone()),
total_civilian_noninstitutionalized_population:
TotalCivilianNoninstitutionalizedPopulation::new(read_field.clone()),
}
}
}
#[derive(GraphQLObject, Copy, Clone, Debug)]
struct TotalCivilianNoninstitutionalizedPopulation {
value: Option<i32>,
with_a_disability: Option<i32>,
}
impl TotalCivilianNoninstitutionalizedPopulation {
pub fn new<F>(read_field: F) -> Self
where
F: Fn(&str) -> Option<i32> + Clone,
{
Self { value : read_field ("Estimate!!DISABILITY STATUS OF THE CIVILIAN NONINSTITUTIONALIZED POPULATION!!Total Civilian Noninstitutionalized Population") , with_a_disability : read_field ("Estimate!!DISABILITY STATUS OF THE CIVILIAN NONINSTITUTIONALIZED POPULATION!!Total Civilian Noninstitutionalized Population!!With a disability") , }
}
}
#[derive(GraphQLObject, Copy, Clone, Debug)]
struct Under18Years {
value: Option<i32>,
with_a_disability: Option<i32>,
}
impl Under18Years {
pub fn new<F>(read_field: F) -> Self
where
F: Fn(&str) -> Option<i32> + Clone,
{
Self { value : read_field ("Estimate!!DISABILITY STATUS OF THE CIVILIAN NONINSTITUTIONALIZED POPULATION!!Under 18 years") , with_a_disability : read_field ("Estimate!!DISABILITY STATUS OF THE CIVILIAN NONINSTITUTIONALIZED POPULATION!!Under 18 years!!With a disability") , }
}
}
#[derive(GraphQLObject, Copy, Clone, Debug)]
struct Age18To64 {
value: Option<i32>,
with_a_disability: Option<i32>,
}
impl Age18To64 {
pub fn new<F>(read_field: F) -> Self
where
F: Fn(&str) -> Option<i32> + Clone,
{
Self { value : read_field ("Estimate!!DISABILITY STATUS OF THE CIVILIAN NONINSTITUTIONALIZED POPULATION!!18 to 64 years") , with_a_disability : read_field ("Estimate!!DISABILITY STATUS OF THE CIVILIAN NONINSTITUTIONALIZED POPULATION!!18 to 64 years!!With a disability") , }
}
}
#[derive(GraphQLObject, Copy, Clone, Debug)]
struct Age65AndOver {
value: Option<i32>,
with_a_disability: Option<i32>,
}
impl Age65AndOver {
pub fn new<F>(read_field: F) -> Self
where
F: Fn(&str) -> Option<i32> + Clone,
{
Self { value : read_field ("Estimate!!DISABILITY STATUS OF THE CIVILIAN NONINSTITUTIONALIZED POPULATION!!65 years and over") , with_a_disability : read_field ("Estimate!!DISABILITY STATUS OF THE CIVILIAN NONINSTITUTIONALIZED POPULATION!!65 years and over!!With a disability") , }
}
}
#[derive(GraphQLObject, Copy, Clone, Debug)]
struct Residence1YearAgo {
population_1_year_and_over: Population1YearAndOver,
}
impl Residence1YearAgo {
pub fn new<F>(read_field: F) -> Self
where
F: Fn(&str) -> Option<i32> + Clone,
{
Self {
population_1_year_and_over: Population1YearAndOver::new(read_field.clone()),
}
}
}
#[derive(GraphQLObject, Copy, Clone, Debug)]
struct Population1YearAndOver {
value: Option<i32>,
abroad: Option<i32>,
different_house_in_the_us: DifferentHouseInTheUs,
same_house: Option<i32>,
}
impl Population1YearAndOver {
pub fn new<F>(read_field: F) -> Self
where
F: Fn(&str) -> Option<i32> + Clone,
{
Self {
value: read_field("Estimate!!RESIDENCE 1 YEAR AGO!!Population 1 year and over"),
abroad: read_field(
"Estimate!!RESIDENCE 1 YEAR AGO!!Population 1 year and over!!Abroad",
),
different_house_in_the_us: DifferentHouseInTheUs::new(read_field.clone()),
same_house: read_field(
"Estimate!!RESIDENCE 1 YEAR AGO!!Population 1 year and over!!Same house",
),
}
}
}
#[derive(GraphQLObject, Copy, Clone, Debug)]
struct DifferentHouseInTheUs {
value: Option<i32>,
different_county: DifferentCounty,
same_county: Option<i32>,
}
impl DifferentHouseInTheUs {
pub fn new<F>(read_field: F) -> Self
where
F: Fn(&str) -> Option<i32> + Clone,
{
Self { value : read_field ("Estimate!!RESIDENCE 1 YEAR AGO!!Population 1 year and over!!Different house in the U.S.") , different_county : DifferentCounty :: new (read_field . clone ()) , same_county : read_field ("Estimate!!RESIDENCE 1 YEAR AGO!!Population 1 year and over!!Different house in the U.S.!!Same county") , }
}
}
#[derive(GraphQLObject, Copy, Clone, Debug)]
struct DifferentCounty {
value: Option<i32>,
different_state: Option<i32>,
same_state: Option<i32>,
}
impl DifferentCounty {
pub fn new<F>(read_field: F) -> Self
where
F: Fn(&str) -> Option<i32> + Clone,
{
Self { value : read_field ("Estimate!!RESIDENCE 1 YEAR AGO!!Population 1 year and over!!Different house in the U.S.!!Different county") , different_state : read_field ("Estimate!!RESIDENCE 1 YEAR AGO!!Population 1 year and over!!Different house in the U.S.!!Different county!!Different state") , same_state : read_field ("Estimate!!RESIDENCE 1 YEAR AGO!!Population 1 year and over!!Different house in the U.S.!!Different county!!Same state") , }
}
}
#[derive(GraphQLObject, Copy, Clone, Debug)]
struct PlaceOfBirth {
total_population: TotalPopulation,
}
impl PlaceOfBirth {
pub fn new<F>(read_field: F) -> Self
where
F: Fn(&str) -> Option<i32> + Clone,
{
Self {
total_population: TotalPopulation::new(read_field.clone()),
}
}
}
#[derive(GraphQLObject, Copy, Clone, Debug)]
struct TotalPopulation {
value: Option<i32>,
foreign_born: Option<i32>,
native: Native,
}
impl TotalPopulation {
pub fn new<F>(read_field: F) -> Self
where
F: Fn(&str) -> Option<i32> + Clone,
{
Self {
value: read_field("Estimate!!PLACE OF BIRTH!!Total population"),
foreign_born: read_field("Estimate!!PLACE OF BIRTH!!Total population!!Foreign born"),
native: Native::new(read_field.clone()),
}
}
}
#[derive(GraphQLObject, Copy, Clone, Debug)]
struct Native {
value: Option<i32>,
born_in_puerto_rico_us_island_areas_or_born_abroad_to_american_parents: Option<i32>,
born_in_united_states: BornInUnitedStates,
}
impl Native {
pub fn new<F>(read_field: F) -> Self
where
F: Fn(&str) -> Option<i32> + Clone,
{
Self { value : read_field ("Estimate!!PLACE OF BIRTH!!Total population!!Native") , born_in_puerto_rico_us_island_areas_or_born_abroad_to_american_parents : read_field ("Estimate!!PLACE OF BIRTH!!Total population!!Native!!Born in Puerto Rico, U.S. Island areas, or born abroad to American parent(s)") , born_in_united_states : BornInUnitedStates :: new (read_field . clone ()) , }
}
}
#[derive(GraphQLObject, Copy, Clone, Debug)]
struct BornInUnitedStates {
value: Option<i32>,
different_state: Option<i32>,
state_of_residence: Option<i32>,
}
impl BornInUnitedStates {
pub fn new<F>(read_field: F) -> Self
where
F: Fn(&str) -> Option<i32> + Clone,
{
Self { value : read_field ("Estimate!!PLACE OF BIRTH!!Total population!!Native!!Born in United States") , different_state : read_field ("Estimate!!PLACE OF BIRTH!!Total population!!Native!!Born in United States!!Different state") , state_of_residence : read_field ("Estimate!!PLACE OF BIRTH!!Total population!!Native!!Born in United States!!State of residence") , }
}
}
#[derive(GraphQLObject, Copy, Clone, Debug)]
struct UsCitizenshipStatus {
foreignborn_population: ForeignbornPopulation,
}
impl UsCitizenshipStatus {
pub fn new<F>(read_field: F) -> Self
where
F: Fn(&str) -> Option<i32> + Clone,
{
Self {
foreignborn_population: ForeignbornPopulation::new(read_field.clone()),
}
}
}
#[derive(GraphQLObject, Copy, Clone, Debug)]
struct ForeignbornPopulation {
value: Option<i32>,
not_a_us_citizen: Option<i32>,
naturalized_us_citizen: Option<i32>,
}
impl ForeignbornPopulation {
pub fn new<F>(read_field: F) -> Self
where
F: Fn(&str) -> Option<i32> + Clone,
{
Self { value : read_field ("Estimate!!U.S. CITIZENSHIP STATUS!!Foreign-born population") , not_a_us_citizen : read_field ("Estimate!!U.S. CITIZENSHIP STATUS!!Foreign-born population!!Not a U.S. citizen") , naturalized_us_citizen : read_field ("Estimate!!U.S. CITIZENSHIP STATUS!!Foreign-born population!!Naturalized U.S. citizen") , }
}
}
#[derive(GraphQLObject, Copy, Clone, Debug)]
struct YearOfEntry {
population_born_outside_the_united_states: PopulationBornOutsideTheUnitedStates,
}
impl YearOfEntry {
pub fn new<F>(read_field: F) -> Self
where
F: Fn(&str) -> Option<i32> + Clone,
{
Self {
population_born_outside_the_united_states: PopulationBornOutsideTheUnitedStates::new(
read_field.clone(),
),
}
}
}
#[derive(GraphQLObject, Copy, Clone, Debug)]
struct PopulationBornOutsideTheUnitedStates {
value: Option<i32>,
foreign_born: ForeignBorn,
native: Native1,
}
impl PopulationBornOutsideTheUnitedStates {
pub fn new<F>(read_field: F) -> Self
where
F: Fn(&str) -> Option<i32> + Clone,
{
Self {
value: read_field("Estimate!!YEAR OF ENTRY!!Population born outside the United States"),
foreign_born: ForeignBorn::new(read_field.clone()),
native: Native1::new(read_field.clone()),
}
}
}
#[derive(GraphQLObject, Copy, Clone, Debug)]
struct Native1 {
value: Option<i32>,
entered_before_2010: Option<i32>,
entered_2010_or_later: Option<i32>,
}
impl Native1 {
pub fn new<F>(read_field: F) -> Self
where
F: Fn(&str) -> Option<i32> + Clone,
{
Self { value : read_field ("Estimate!!YEAR OF ENTRY!!Population born outside the United States!!Native") , entered_before_2010 : read_field ("Estimate!!YEAR OF ENTRY!!Population born outside the United States!!Native!!Entered before 2010") , entered_2010_or_later : read_field ("Estimate!!YEAR OF ENTRY!!Population born outside the United States!!Native!!Entered 2010 or later") , }
}
}
#[derive(GraphQLObject, Copy, Clone, Debug)]
struct ForeignBorn {
value: Option<i32>,
entered_before_2010: Option<i32>,
entered_2010_or_later: Option<i32>,
}
impl ForeignBorn {
pub fn new<F>(read_field: F) -> Self
where
F: Fn(&str) -> Option<i32> + Clone,
{
Self { value : read_field ("Estimate!!YEAR OF ENTRY!!Population born outside the United States!!Foreign born") , entered_before_2010 : read_field ("Estimate!!YEAR OF ENTRY!!Population born outside the United States!!Foreign born!!Entered before 2010") , entered_2010_or_later : read_field ("Estimate!!YEAR OF ENTRY!!Population born outside the United States!!Foreign born!!Entered 2010 or later") , }
}
}
#[derive(GraphQLObject, Copy, Clone, Debug)]
struct WorldRegionOfBirthOfForeignBorn {
foreignborn_population_excluding_population_born_at_sea:
ForeignbornPopulationExcludingPopulationBornAtSea,
}
impl WorldRegionOfBirthOfForeignBorn {
pub fn new<F>(read_field: F) -> Self
where
F: Fn(&str) -> Option<i32> + Clone,
{
Self {
foreignborn_population_excluding_population_born_at_sea:
ForeignbornPopulationExcludingPopulationBornAtSea::new(read_field.clone()),
}
}
}
#[derive(GraphQLObject, Copy, Clone, Debug)]
struct ForeignbornPopulationExcludingPopulationBornAtSea {
value: Option<i32>,
northern_america: Option<i32>,
latin_america: Option<i32>,
oceania: Option<i32>,
africa: Option<i32>,
asia: Option<i32>,
europe: Option<i32>,
}
impl ForeignbornPopulationExcludingPopulationBornAtSea {
pub fn new<F>(read_field: F) -> Self
where
F: Fn(&str) -> Option<i32> + Clone,
{
Self { value : read_field ("Estimate!!WORLD REGION OF BIRTH OF FOREIGN BORN!!Foreign-born population, excluding population born at sea") , northern_america : read_field ("Estimate!!WORLD REGION OF BIRTH OF FOREIGN BORN!!Foreign-born population, excluding population born at sea!!Northern America") , latin_america : read_field ("Estimate!!WORLD REGION OF BIRTH OF FOREIGN BORN!!Foreign-born population, excluding population born at sea!!Latin America") , oceania : read_field ("Estimate!!WORLD REGION OF BIRTH OF FOREIGN BORN!!Foreign-born population, excluding population born at sea!!Oceania") , africa : read_field ("Estimate!!WORLD REGION OF BIRTH OF FOREIGN BORN!!Foreign-born population, excluding population born at sea!!Africa") , asia : read_field ("Estimate!!WORLD REGION OF BIRTH OF FOREIGN BORN!!Foreign-born population, excluding population born at sea!!Asia") , europe : read_field ("Estimate!!WORLD REGION OF BIRTH OF FOREIGN BORN!!Foreign-born population, excluding population born at sea!!Europe") , }
}
}
#[derive(GraphQLObject, Copy, Clone, Debug)]
struct LanguageSpokenAtHome {
population_5_years_and_over: Population5YearsAndOver,
}
impl LanguageSpokenAtHome {
pub fn new<F>(read_field: F) -> Self
where
F: Fn(&str) -> Option<i32> + Clone,
{
Self {
population_5_years_and_over: Population5YearsAndOver::new(read_field.clone()),
}
}
}
#[derive(GraphQLObject, Copy, Clone, Debug)]
struct Population5YearsAndOver {
value: Option<i32>,
other_languages: OtherLanguages,
asian_and_pacific_islander_languages: AsianAndPacificIslanderLanguages,
other_indo_european_languages: OtherIndoEuropeanLanguages,
spanish: Spanish,
language_other_than_english: LanguageOtherThanEnglish,
english_only: Option<i32>,
}
impl Population5YearsAndOver {
pub fn new<F>(read_field: F) -> Self
where
F: Fn(&str) -> Option<i32> + Clone,
{
Self {
value: read_field("Estimate!!LANGUAGE SPOKEN AT HOME!!Population 5 years and over"),
other_languages: OtherLanguages::new(read_field.clone()),
asian_and_pacific_islander_languages: AsianAndPacificIslanderLanguages::new(
read_field.clone(),
),
other_indo_european_languages: OtherIndoEuropeanLanguages::new(read_field.clone()),
spanish: Spanish::new(read_field.clone()),
language_other_than_english: LanguageOtherThanEnglish::new(read_field.clone()),
english_only: read_field(
"Estimate!!LANGUAGE SPOKEN AT HOME!!Population 5 years and over!!English only",
),
}
}
}
#[derive(GraphQLObject, Copy, Clone, Debug)]
struct LanguageOtherThanEnglish {
value: Option<i32>,
speak_english_less_than_very_well: Option<i32>,
}
impl LanguageOtherThanEnglish {
pub fn new<F>(read_field: F) -> Self
where
F: Fn(&str) -> Option<i32> + Clone,
{
Self { value : read_field ("Estimate!!LANGUAGE SPOKEN AT HOME!!Population 5 years and over!!Language other than English") , speak_english_less_than_very_well : read_field ("Estimate!!LANGUAGE SPOKEN AT HOME!!Population 5 years and over!!Language other than English!!Speak English less than \"very well\"") , }
}
}
#[derive(GraphQLObject, Copy, Clone, Debug)]
struct Spanish {
value: Option<i32>,
speak_english_less_than_very_well: Option<i32>,
}
impl Spanish {
pub fn new<F>(read_field: F) -> Self
where
F: Fn(&str) -> Option<i32> + Clone,
{
Self { value : read_field ("Estimate!!LANGUAGE SPOKEN AT HOME!!Population 5 years and over!!Spanish") , speak_english_less_than_very_well : read_field ("Estimate!!LANGUAGE SPOKEN AT HOME!!Population 5 years and over!!Spanish!!Speak English less than \"very well\"") , }
}
}
#[derive(GraphQLObject, Copy, Clone, Debug)]
struct OtherIndoEuropeanLanguages {
value: Option<i32>,
speak_english_less_than_very_well: Option<i32>,
}
impl OtherIndoEuropeanLanguages {
pub fn new<F>(read_field: F) -> Self
where
F: Fn(&str) -> Option<i32> + Clone,
{
Self { value : read_field ("Estimate!!LANGUAGE SPOKEN AT HOME!!Population 5 years and over!!Other Indo-European languages") , speak_english_less_than_very_well : read_field ("Estimate!!LANGUAGE SPOKEN AT HOME!!Population 5 years and over!!Other Indo-European languages!!Speak English less than \"very well\"") , }
}
}
#[derive(GraphQLObject, Copy, Clone, Debug)]
struct AsianAndPacificIslanderLanguages {
value: Option<i32>,
speak_english_less_than_very_well: Option<i32>,
}
impl AsianAndPacificIslanderLanguages {
pub fn new<F>(read_field: F) -> Self
where
F: Fn(&str) -> Option<i32> + Clone,
{
Self { value : read_field ("Estimate!!LANGUAGE SPOKEN AT HOME!!Population 5 years and over!!Asian and Pacific Islander languages") , speak_english_less_than_very_well : read_field ("Estimate!!LANGUAGE SPOKEN AT HOME!!Population 5 years and over!!Asian and Pacific Islander languages!!Speak English less than \"very well\"") , }
}
}
#[derive(GraphQLObject, Copy, Clone, Debug)]
struct OtherLanguages {
value: Option<i32>,
speak_english_less_than_very_well: Option<i32>,
}
impl OtherLanguages {
pub fn new<F>(read_field: F) -> Self
where
F: Fn(&str) -> Option<i32> + Clone,
{
Self { value : read_field ("Estimate!!LANGUAGE SPOKEN AT HOME!!Population 5 years and over!!Other languages") , speak_english_less_than_very_well : read_field ("Estimate!!LANGUAGE SPOKEN AT HOME!!Population 5 years and over!!Other languages!!Speak English less than \"very well\"") , }
}
}
#[derive(GraphQLObject, Copy, Clone, Debug)]
struct Ancestry {
total_population: TotalPopulation1,
}
impl Ancestry {
pub fn new<F>(read_field: F) -> Self
where
F: Fn(&str) -> Option<i32> + Clone,
{
Self {
total_population: TotalPopulation1::new(read_field.clone()),
}
}
}
#[derive(GraphQLObject, Copy, Clone, Debug)]
struct TotalPopulation1 {
value: Option<i32>,
west_indian_excluding_hispanic_origin_groups: Option<i32>,
welsh: Option<i32>,
ukrainian: Option<i32>,
swiss: Option<i32>,
swedish: Option<i32>,
subsaharan_african: Option<i32>,
slovak: Option<i32>,
scottish: Option<i32>,
scotch_irish: Option<i32>,
russian: Option<i32>,
portuguese: Option<i32>,
polish: Option<i32>,
norwegian: Option<i32>,
lithuanian: Option<i32>,
italian: Option<i32>,
irish: Option<i32>,
hungarian: Option<i32>,
greek: Option<i32>,
german: Option<i32>,
french_canadian: Option<i32>,
french_except_basque: Option<i32>,
english: Option<i32>,
dutch: Option<i32>,
danish: Option<i32>,
czech: Option<i32>,
arab: Option<i32>,
american: Option<i32>,
}
impl TotalPopulation1 {
pub fn new<F>(read_field: F) -> Self
where
F: Fn(&str) -> Option<i32> + Clone,
{
Self { value : read_field ("Estimate!!ANCESTRY!!Total population") , west_indian_excluding_hispanic_origin_groups : read_field ("Estimate!!ANCESTRY!!Total population!!West Indian (excluding Hispanic origin groups)") , welsh : read_field ("Estimate!!ANCESTRY!!Total population!!Welsh") , ukrainian : read_field ("Estimate!!ANCESTRY!!Total population!!Ukrainian") , swiss : read_field ("Estimate!!ANCESTRY!!Total population!!Swiss") , swedish : read_field ("Estimate!!ANCESTRY!!Total population!!Swedish") , subsaharan_african : read_field ("Estimate!!ANCESTRY!!Total population!!Subsaharan African") , slovak : read_field ("Estimate!!ANCESTRY!!Total population!!Slovak") , scottish : read_field ("Estimate!!ANCESTRY!!Total population!!Scottish") , scotch_irish : read_field ("Estimate!!ANCESTRY!!Total population!!Scotch-Irish") , russian : read_field ("Estimate!!ANCESTRY!!Total population!!Russian") , portuguese : read_field ("Estimate!!ANCESTRY!!Total population!!Portuguese") , polish : read_field ("Estimate!!ANCESTRY!!Total population!!Polish") , norwegian : read_field ("Estimate!!ANCESTRY!!Total population!!Norwegian") , lithuanian : read_field ("Estimate!!ANCESTRY!!Total population!!Lithuanian") , italian : read_field ("Estimate!!ANCESTRY!!Total population!!Italian") , irish : read_field ("Estimate!!ANCESTRY!!Total population!!Irish") , hungarian : read_field ("Estimate!!ANCESTRY!!Total population!!Hungarian") , greek : read_field ("Estimate!!ANCESTRY!!Total population!!Greek") , german : read_field ("Estimate!!ANCESTRY!!Total population!!German") , french_canadian : read_field ("Estimate!!ANCESTRY!!Total population!!French Canadian") , french_except_basque : read_field ("Estimate!!ANCESTRY!!Total population!!French (except Basque)") , english : read_field ("Estimate!!ANCESTRY!!Total population!!English") , dutch : read_field ("Estimate!!ANCESTRY!!Total population!!Dutch") , danish : read_field ("Estimate!!ANCESTRY!!Total population!!Danish") , czech : read_field ("Estimate!!ANCESTRY!!Total population!!Czech") , arab : read_field ("Estimate!!ANCESTRY!!Total population!!Arab") , american : read_field ("Estimate!!ANCESTRY!!Total population!!American") , }
}
}
#[derive(GraphQLObject, Copy, Clone, Debug)]
struct ComputersAndInternetUse {
total_households: TotalHouseholds1,
}
impl ComputersAndInternetUse {
pub fn new<F>(read_field: F) -> Self
where
F: Fn(&str) -> Option<i32> + Clone,
{
Self {
total_households: TotalHouseholds1::new(read_field.clone()),
}
}
}
#[derive(GraphQLObject, Copy, Clone, Debug)]
struct TotalHouseholds1 {
value: Option<i32>,
with_a_broadband_internet_subscription: Option<i32>,
with_a_computer: Option<i32>,
}
impl TotalHouseholds1 {
pub fn new<F>(read_field: F) -> Self
where
F: Fn(&str) -> Option<i32> + Clone,
{
Self { value : read_field ("Estimate!!COMPUTERS AND INTERNET USE!!Total households") , with_a_broadband_internet_subscription : read_field ("Estimate!!COMPUTERS AND INTERNET USE!!Total households!!With a broadband Internet subscription") , with_a_computer : read_field ("Estimate!!COMPUTERS AND INTERNET USE!!Total households!!With a computer") , }
}
}
#[derive(GraphQLObject, Copy, Clone, Debug)]
struct Dp03 {
percentage_of_families_and_people_whose_income_in_the_past_12_months_is_below_the_poverty_level:
PercentageOfFamiliesAndPeopleWhoseIncomeInThePast12MonthsIsBelowThePovertyLevel,
health_insurance_coverage: HealthInsuranceCoverage,
income_and_benefits: IncomeAndBenefits,
class_of_worker: ClassOfWorker,
industry: Industry,
occupation: Occupation,
commuting_to_work: CommutingToWork,
employment_status: EmploymentStatus,
}
impl Dp03 {
pub fn new<F>(read_field: F) -> Self
where
F: Fn(&str) -> Option<i32> + Clone,
{
Self { percentage_of_families_and_people_whose_income_in_the_past_12_months_is_below_the_poverty_level : PercentageOfFamiliesAndPeopleWhoseIncomeInThePast12MonthsIsBelowThePovertyLevel :: new (read_field . clone ()) , health_insurance_coverage : HealthInsuranceCoverage :: new (read_field . clone ()) , income_and_benefits : IncomeAndBenefits :: new (read_field . clone ()) , class_of_worker : ClassOfWorker :: new (read_field . clone ()) , industry : Industry :: new (read_field . clone ()) , occupation : Occupation :: new (read_field . clone ()) , commuting_to_work : CommutingToWork :: new (read_field . clone ()) , employment_status : EmploymentStatus :: new (read_field . clone ()) , }
}
}
#[derive(GraphQLObject, Copy, Clone, Debug)]
struct EmploymentStatus {
own_children_of_the_householder_6_to_17_years: OwnChildrenOfTheHouseholder6To17Years,
own_children_of_the_householder_under_6_years: OwnChildrenOfTheHouseholderUnder6Years,
females_16_years_and_over: Females16YearsAndOver,
civilian_labor_force: CivilianLaborForce,
population_16_years_and_over: Population16YearsAndOver,
}
impl EmploymentStatus {
pub fn new<F>(read_field: F) -> Self
where
F: Fn(&str) -> Option<i32> + Clone,
{
Self {
own_children_of_the_householder_6_to_17_years:
OwnChildrenOfTheHouseholder6To17Years::new(read_field.clone()),
own_children_of_the_householder_under_6_years:
OwnChildrenOfTheHouseholderUnder6Years::new(read_field.clone()),
females_16_years_and_over: Females16YearsAndOver::new(read_field.clone()),
civilian_labor_force: CivilianLaborForce::new(read_field.clone()),
population_16_years_and_over: Population16YearsAndOver::new(read_field.clone()),
}
}
}
#[derive(GraphQLObject, Copy, Clone, Debug)]
struct Population16YearsAndOver {
value: Option<i32>,
not_in_labor_force: Option<i32>,
in_labor_force: InLaborForce,
}
impl Population16YearsAndOver {
pub fn new<F>(read_field: F) -> Self
where
F: Fn(&str) -> Option<i32> + Clone,
{
Self {
value: read_field("Estimate!!EMPLOYMENT STATUS!!Population 16 years and over"),
not_in_labor_force: read_field(
"Estimate!!EMPLOYMENT STATUS!!Population 16 years and over!!Not in labor force",
),
in_labor_force: InLaborForce::new(read_field.clone()),
}
}
}
#[derive(GraphQLObject, Copy, Clone, Debug)]
struct InLaborForce {
value: Option<i32>,
armed_forces: Option<i32>,
civilian_labor_force: CivilianLaborForce1,
}
impl InLaborForce {
pub fn new<F>(read_field: F) -> Self
where
F: Fn(&str) -> Option<i32> + Clone,
{
Self { value : read_field ("Estimate!!EMPLOYMENT STATUS!!Population 16 years and over!!In labor force") , armed_forces : read_field ("Estimate!!EMPLOYMENT STATUS!!Population 16 years and over!!In labor force!!Armed Forces") , civilian_labor_force : CivilianLaborForce1 :: new (read_field . clone ()) , }
}
}
#[derive(GraphQLObject, Copy, Clone, Debug)]
struct CivilianLaborForce1 {
value: Option<i32>,
unemployed: Option<i32>,
employed: Option<i32>,
}
impl CivilianLaborForce1 {
pub fn new<F>(read_field: F) -> Self
where
F: Fn(&str) -> Option<i32> + Clone,
{
Self { value : read_field ("Estimate!!EMPLOYMENT STATUS!!Population 16 years and over!!In labor force!!Civilian labor force") , unemployed : read_field ("Estimate!!EMPLOYMENT STATUS!!Population 16 years and over!!In labor force!!Civilian labor force!!Unemployed") , employed : read_field ("Estimate!!EMPLOYMENT STATUS!!Population 16 years and over!!In labor force!!Civilian labor force!!Employed") , }
}
}
#[derive(GraphQLObject, Copy, Clone, Debug)]
struct CivilianLaborForce {
value: Option<i32>,
unemployment_rate: Option<i32>,
}
impl CivilianLaborForce {
pub fn new<F>(read_field: F) -> Self
where
F: Fn(&str) -> Option<i32> + Clone,
{
Self {
value: read_field("Estimate!!EMPLOYMENT STATUS!!Civilian labor force"),
unemployment_rate: read_field(
"Estimate!!EMPLOYMENT STATUS!!Civilian labor force!!Unemployment Rate",
),
}
}
}
#[derive(GraphQLObject, Copy, Clone, Debug)]
struct Females16YearsAndOver {
value: Option<i32>,
in_labor_force: InLaborForce1,
}
impl Females16YearsAndOver {
pub fn new<F>(read_field: F) -> Self
where
F: Fn(&str) -> Option<i32> + Clone,
{
Self {
value: read_field("Estimate!!EMPLOYMENT STATUS!!Females 16 years and over"),
in_labor_force: InLaborForce1::new(read_field.clone()),
}
}
}
#[derive(GraphQLObject, Copy, Clone, Debug)]
struct InLaborForce1 {
value: Option<i32>,
civilian_labor_force: CivilianLaborForce2,
}
impl InLaborForce1 {
pub fn new<F>(read_field: F) -> Self
where
F: Fn(&str) -> Option<i32> + Clone,
{
Self {
value: read_field(
"Estimate!!EMPLOYMENT STATUS!!Females 16 years and over!!In labor force",
),
civilian_labor_force: CivilianLaborForce2::new(read_field.clone()),
}
}
}
#[derive(GraphQLObject, Copy, Clone, Debug)]
struct CivilianLaborForce2 {
value: Option<i32>,
employed: Option<i32>,
}
impl CivilianLaborForce2 {
pub fn new<F>(read_field: F) -> Self
where
F: Fn(&str) -> Option<i32> + Clone,
{
Self { value : read_field ("Estimate!!EMPLOYMENT STATUS!!Females 16 years and over!!In labor force!!Civilian labor force") , employed : read_field ("Estimate!!EMPLOYMENT STATUS!!Females 16 years and over!!In labor force!!Civilian labor force!!Employed") , }
}
}
#[derive(GraphQLObject, Copy, Clone, Debug)]
struct OwnChildrenOfTheHouseholderUnder6Years {
value: Option<i32>,
all_parents_in_family_in_labor_force: Option<i32>,
}
impl OwnChildrenOfTheHouseholderUnder6Years {
pub fn new<F>(read_field: F) -> Self
where
F: Fn(&str) -> Option<i32> + Clone,
{
Self { value : read_field ("Estimate!!EMPLOYMENT STATUS!!Own children of the householder under 6 years") , all_parents_in_family_in_labor_force : read_field ("Estimate!!EMPLOYMENT STATUS!!Own children of the householder under 6 years!!All parents in family in labor force") , }
}
}
#[derive(GraphQLObject, Copy, Clone, Debug)]
struct OwnChildrenOfTheHouseholder6To17Years {
value: Option<i32>,
all_parents_in_family_in_labor_force: Option<i32>,
}
impl OwnChildrenOfTheHouseholder6To17Years {
pub fn new<F>(read_field: F) -> Self
where
F: Fn(&str) -> Option<i32> + Clone,
{
Self { value : read_field ("Estimate!!EMPLOYMENT STATUS!!Own children of the householder 6 to 17 years") , all_parents_in_family_in_labor_force : read_field ("Estimate!!EMPLOYMENT STATUS!!Own children of the householder 6 to 17 years!!All parents in family in labor force") , }
}
}
#[derive(GraphQLObject, Copy, Clone, Debug)]
struct CommutingToWork {
workers_16_years_and_over: Workers16YearsAndOver,
}
impl CommutingToWork {
pub fn new<F>(read_field: F) -> Self
where
F: Fn(&str) -> Option<i32> + Clone,
{
Self {
workers_16_years_and_over: Workers16YearsAndOver::new(read_field.clone()),
}
}
}
#[derive(GraphQLObject, Copy, Clone, Debug)]
struct Workers16YearsAndOver {
value: Option<i32>,
mean_travel_time_to_work_minutes: Option<i32>,
worked_from_home: Option<i32>,
other_means: Option<i32>,
walked: Option<i32>,
public_transportation_excluding_taxicab: Option<i32>,
car_truck_or_van_carpooled: Option<i32>,
car_truck_or_van_drove_alone: Option<i32>,
}
impl Workers16YearsAndOver {
pub fn new<F>(read_field: F) -> Self
where
F: Fn(&str) -> Option<i32> + Clone,
{
Self { value : read_field ("Estimate!!COMMUTING TO WORK!!Workers 16 years and over") , mean_travel_time_to_work_minutes : read_field ("Estimate!!COMMUTING TO WORK!!Workers 16 years and over!!Mean travel time to work (minutes)") , worked_from_home : read_field ("Estimate!!COMMUTING TO WORK!!Workers 16 years and over!!Worked from home") , other_means : read_field ("Estimate!!COMMUTING TO WORK!!Workers 16 years and over!!Other means") , walked : read_field ("Estimate!!COMMUTING TO WORK!!Workers 16 years and over!!Walked") , public_transportation_excluding_taxicab : read_field ("Estimate!!COMMUTING TO WORK!!Workers 16 years and over!!Public transportation (excluding taxicab)") , car_truck_or_van_carpooled : read_field ("Estimate!!COMMUTING TO WORK!!Workers 16 years and over!!Car, truck, or van -- carpooled") , car_truck_or_van_drove_alone : read_field ("Estimate!!COMMUTING TO WORK!!Workers 16 years and over!!Car, truck, or van -- drove alone") , }
}
}
#[derive(GraphQLObject, Copy, Clone, Debug)]
struct Occupation {
civilian_employed_population_16_years_and_over: CivilianEmployedPopulation16YearsAndOver,
}
impl Occupation {
pub fn new<F>(read_field: F) -> Self
where
F: Fn(&str) -> Option<i32> + Clone,
{
Self {
civilian_employed_population_16_years_and_over:
CivilianEmployedPopulation16YearsAndOver::new(read_field.clone()),
}
}
}
#[derive(GraphQLObject, Copy, Clone, Debug)]
struct CivilianEmployedPopulation16YearsAndOver {
value: Option<i32>,
production_transportation_and_material_moving_occupations: Option<i32>,
natural_resources_construction_and_maintenance_occupations: Option<i32>,
sales_and_office_occupations: Option<i32>,
service_occupations: Option<i32>,
management_business_science_and_arts_occupations: Option<i32>,
}
impl CivilianEmployedPopulation16YearsAndOver {
pub fn new<F>(read_field: F) -> Self
where
F: Fn(&str) -> Option<i32> + Clone,
{
Self { value : read_field ("Estimate!!OCCUPATION!!Civilian employed population 16 years and over") , production_transportation_and_material_moving_occupations : read_field ("Estimate!!OCCUPATION!!Civilian employed population 16 years and over!!Production, transportation, and material moving occupations") , natural_resources_construction_and_maintenance_occupations : read_field ("Estimate!!OCCUPATION!!Civilian employed population 16 years and over!!Natural resources, construction, and maintenance occupations") , sales_and_office_occupations : read_field ("Estimate!!OCCUPATION!!Civilian employed population 16 years and over!!Sales and office occupations") , service_occupations : read_field ("Estimate!!OCCUPATION!!Civilian employed population 16 years and over!!Service occupations") , management_business_science_and_arts_occupations : read_field ("Estimate!!OCCUPATION!!Civilian employed population 16 years and over!!Management, business, science, and arts occupations") , }
}
}
#[derive(GraphQLObject, Copy, Clone, Debug)]
struct Industry {
civilian_employed_population_16_years_and_over: CivilianEmployedPopulation16YearsAndOver1,
}
impl Industry {
pub fn new<F>(read_field: F) -> Self
where
F: Fn(&str) -> Option<i32> + Clone,
{
Self {
civilian_employed_population_16_years_and_over:
CivilianEmployedPopulation16YearsAndOver1::new(read_field.clone()),
}
}
}
#[derive(GraphQLObject, Copy, Clone, Debug)]
struct CivilianEmployedPopulation16YearsAndOver1 {
value: Option<i32>,
public_administration: Option<i32>,
other_services_except_public_administration: Option<i32>,
arts_entertainment_and_recreation_and_accommodation_and_food_services: Option<i32>,
educational_services_and_health_care_and_social_assistance: Option<i32>,
professional_scientific_and_management_and_administrative_and_waste_management_services:
Option<i32>,
finance_and_insurance_and_real_estate_and_rental_and_leasing: Option<i32>,
information: Option<i32>,
transportation_and_warehousing_and_utilities: Option<i32>,
retail_trade: Option<i32>,
wholesale_trade: Option<i32>,
manufacturing: Option<i32>,
construction: Option<i32>,
agriculture_forestry_fishing_and_hunting_and_mining: Option<i32>,
}
impl CivilianEmployedPopulation16YearsAndOver1 {
pub fn new<F>(read_field: F) -> Self
where
F: Fn(&str) -> Option<i32> + Clone,
{
Self { value : read_field ("Estimate!!INDUSTRY!!Civilian employed population 16 years and over") , public_administration : read_field ("Estimate!!INDUSTRY!!Civilian employed population 16 years and over!!Public administration") , other_services_except_public_administration : read_field ("Estimate!!INDUSTRY!!Civilian employed population 16 years and over!!Other services, except public administration") , arts_entertainment_and_recreation_and_accommodation_and_food_services : read_field ("Estimate!!INDUSTRY!!Civilian employed population 16 years and over!!Arts, entertainment, and recreation, and accommodation and food services") , educational_services_and_health_care_and_social_assistance : read_field ("Estimate!!INDUSTRY!!Civilian employed population 16 years and over!!Educational services, and health care and social assistance") , professional_scientific_and_management_and_administrative_and_waste_management_services : read_field ("Estimate!!INDUSTRY!!Civilian employed population 16 years and over!!Professional, scientific, and management, and administrative and waste management services") , finance_and_insurance_and_real_estate_and_rental_and_leasing : read_field ("Estimate!!INDUSTRY!!Civilian employed population 16 years and over!!Finance and insurance, and real estate and rental and leasing") , information : read_field ("Estimate!!INDUSTRY!!Civilian employed population 16 years and over!!Information") , transportation_and_warehousing_and_utilities : read_field ("Estimate!!INDUSTRY!!Civilian employed population 16 years and over!!Transportation and warehousing, and utilities") , retail_trade : read_field ("Estimate!!INDUSTRY!!Civilian employed population 16 years and over!!Retail trade") , wholesale_trade : read_field ("Estimate!!INDUSTRY!!Civilian employed population 16 years and over!!Wholesale trade") , manufacturing : read_field ("Estimate!!INDUSTRY!!Civilian employed population 16 years and over!!Manufacturing") , construction : read_field ("Estimate!!INDUSTRY!!Civilian employed population 16 years and over!!Construction") , agriculture_forestry_fishing_and_hunting_and_mining : read_field ("Estimate!!INDUSTRY!!Civilian employed population 16 years and over!!Agriculture, forestry, fishing and hunting, and mining") , }
}
}
#[derive(GraphQLObject, Copy, Clone, Debug)]
struct ClassOfWorker {
civilian_employed_population_16_years_and_over: CivilianEmployedPopulation16YearsAndOver2,
}
impl ClassOfWorker {
pub fn new<F>(read_field: F) -> Self
where
F: Fn(&str) -> Option<i32> + Clone,
{
Self {
civilian_employed_population_16_years_and_over:
CivilianEmployedPopulation16YearsAndOver2::new(read_field.clone()),
}
}
}
#[derive(GraphQLObject, Copy, Clone, Debug)]
struct CivilianEmployedPopulation16YearsAndOver2 {
value: Option<i32>,
unpaid_family_workers: Option<i32>,
selfemployed_in_own_not_incorporated_business_workers: Option<i32>,
government_workers: Option<i32>,
private_wage_and_salary_workers: Option<i32>,
}
impl CivilianEmployedPopulation16YearsAndOver2 {
pub fn new<F>(read_field: F) -> Self
where
F: Fn(&str) -> Option<i32> + Clone,
{
Self { value : read_field ("Estimate!!CLASS OF WORKER!!Civilian employed population 16 years and over") , unpaid_family_workers : read_field ("Estimate!!CLASS OF WORKER!!Civilian employed population 16 years and over!!Unpaid family workers") , selfemployed_in_own_not_incorporated_business_workers : read_field ("Estimate!!CLASS OF WORKER!!Civilian employed population 16 years and over!!Self-employed in own not incorporated business workers") , government_workers : read_field ("Estimate!!CLASS OF WORKER!!Civilian employed population 16 years and over!!Government workers") , private_wage_and_salary_workers : read_field ("Estimate!!CLASS OF WORKER!!Civilian employed population 16 years and over!!Private wage and salary workers") , }
}
}
#[derive(GraphQLObject, Copy, Clone, Debug)]
struct IncomeAndBenefits {
median_earnings_for_female_fulltime_yearround_workers_dollars: Option<i32>,
median_earnings_for_male_fulltime_yearround_workers_dollars: Option<i32>,
median_earnings_for_workers_dollars: Option<i32>,
nonfamily_households: NonfamilyHouseholds,
per_capita_income_dollars: Option<i32>,
families: Families,
total_households: TotalHouseholds2,
}
impl IncomeAndBenefits {
pub fn new<F>(read_field: F) -> Self
where
F: Fn(&str) -> Option<i32> + Clone,
{
Self { median_earnings_for_female_fulltime_yearround_workers_dollars : read_field ("Estimate!!INCOME AND BENEFITS (IN 2019 INFLATION-ADJUSTED DOLLARS)!!Median earnings for female full-time, year-round workers (dollars)") , median_earnings_for_male_fulltime_yearround_workers_dollars : read_field ("Estimate!!INCOME AND BENEFITS (IN 2019 INFLATION-ADJUSTED DOLLARS)!!Median earnings for male full-time, year-round workers (dollars)") , median_earnings_for_workers_dollars : read_field ("Estimate!!INCOME AND BENEFITS (IN 2019 INFLATION-ADJUSTED DOLLARS)!!Median earnings for workers (dollars)") , nonfamily_households : NonfamilyHouseholds :: new (read_field . clone ()) , per_capita_income_dollars : read_field ("Estimate!!INCOME AND BENEFITS (IN 2019 INFLATION-ADJUSTED DOLLARS)!!Per capita income (dollars)") , families : Families :: new (read_field . clone ()) , total_households : TotalHouseholds2 :: new (read_field . clone ()) , }
}
}
#[derive(GraphQLObject, Copy, Clone, Debug)]
struct TotalHouseholds2 {
value: Option<i32>,
with_food_stamp_snap_benefits_in_the_past_12_months: Option<i32>,
with_cash_public_assistance_income: WithCashPublicAssistanceIncome,
with_supplemental_security_income: WithSupplementalSecurityIncome,
with_retirement_income: WithRetirementIncome,
with_social_security: WithSocialSecurity,
with_earnings: WithEarnings,
mean_household_income_dollars: Option<i32>,
median_household_income_dollars: Option<i32>,
usd_200000_or_more: Option<i32>,
usd_150000_to_usd_199999: Option<i32>,
usd_100000_to_usd_149999: Option<i32>,
usd_75000_to_usd_99999: Option<i32>,
usd_50000_to_usd_74999: Option<i32>,
usd_35000_to_usd_49999: Option<i32>,
usd_25000_to_usd_34999: Option<i32>,
usd_15000_to_usd_24999: Option<i32>,
usd_10000_to_usd_14999: Option<i32>,
less_than_usd_10000: Option<i32>,
}
impl TotalHouseholds2 {
pub fn new<F>(read_field: F) -> Self
where
F: Fn(&str) -> Option<i32> + Clone,
{
Self { value : read_field ("Estimate!!INCOME AND BENEFITS (IN 2019 INFLATION-ADJUSTED DOLLARS)!!Total households") , with_food_stamp_snap_benefits_in_the_past_12_months : read_field ("Estimate!!INCOME AND BENEFITS (IN 2019 INFLATION-ADJUSTED DOLLARS)!!Total households!!With Food Stamp/SNAP benefits in the past 12 months") , with_cash_public_assistance_income : WithCashPublicAssistanceIncome :: new (read_field . clone ()) , with_supplemental_security_income : WithSupplementalSecurityIncome :: new (read_field . clone ()) , with_retirement_income : WithRetirementIncome :: new (read_field . clone ()) , with_social_security : WithSocialSecurity :: new (read_field . clone ()) , with_earnings : WithEarnings :: new (read_field . clone ()) , mean_household_income_dollars : read_field ("Estimate!!INCOME AND BENEFITS (IN 2019 INFLATION-ADJUSTED DOLLARS)!!Total households!!Mean household income (dollars)") , median_household_income_dollars : read_field ("Estimate!!INCOME AND BENEFITS (IN 2019 INFLATION-ADJUSTED DOLLARS)!!Total households!!Median household income (dollars)") , usd_200000_or_more : read_field ("Estimate!!INCOME AND BENEFITS (IN 2019 INFLATION-ADJUSTED DOLLARS)!!Total households!!$200,000 or more") , usd_150000_to_usd_199999 : read_field ("Estimate!!INCOME AND BENEFITS (IN 2019 INFLATION-ADJUSTED DOLLARS)!!Total households!!$150,000 to $199,999") , usd_100000_to_usd_149999 : read_field ("Estimate!!INCOME AND BENEFITS (IN 2019 INFLATION-ADJUSTED DOLLARS)!!Total households!!$100,000 to $149,999") , usd_75000_to_usd_99999 : read_field ("Estimate!!INCOME AND BENEFITS (IN 2019 INFLATION-ADJUSTED DOLLARS)!!Total households!!$75,000 to $99,999") , usd_50000_to_usd_74999 : read_field ("Estimate!!INCOME AND BENEFITS (IN 2019 INFLATION-ADJUSTED DOLLARS)!!Total households!!$50,000 to $74,999") , usd_35000_to_usd_49999 : read_field ("Estimate!!INCOME AND BENEFITS (IN 2019 INFLATION-ADJUSTED DOLLARS)!!Total households!!$35,000 to $49,999") , usd_25000_to_usd_34999 : read_field ("Estimate!!INCOME AND BENEFITS (IN 2019 INFLATION-ADJUSTED DOLLARS)!!Total households!!$25,000 to $34,999") , usd_15000_to_usd_24999 : read_field ("Estimate!!INCOME AND BENEFITS (IN 2019 INFLATION-ADJUSTED DOLLARS)!!Total households!!$15,000 to $24,999") , usd_10000_to_usd_14999 : read_field ("Estimate!!INCOME AND BENEFITS (IN 2019 INFLATION-ADJUSTED DOLLARS)!!Total households!!$10,000 to $14,999") , less_than_usd_10000 : read_field ("Estimate!!INCOME AND BENEFITS (IN 2019 INFLATION-ADJUSTED DOLLARS)!!Total households!!Less than $10,000") , }
}
}
#[derive(GraphQLObject, Copy, Clone, Debug)]
struct WithEarnings {
value: Option<i32>,
mean_earnings_dollars: Option<i32>,
}
impl WithEarnings {
pub fn new<F>(read_field: F) -> Self
where
F: Fn(&str) -> Option<i32> + Clone,
{
Self { value : read_field ("Estimate!!INCOME AND BENEFITS (IN 2019 INFLATION-ADJUSTED DOLLARS)!!Total households!!With earnings") , mean_earnings_dollars : read_field ("Estimate!!INCOME AND BENEFITS (IN 2019 INFLATION-ADJUSTED DOLLARS)!!Total households!!With earnings!!Mean earnings (dollars)") , }
}
}
#[derive(GraphQLObject, Copy, Clone, Debug)]
struct WithSocialSecurity {
value: Option<i32>,
mean_social_security_income_dollars: Option<i32>,
}
impl WithSocialSecurity {
pub fn new<F>(read_field: F) -> Self
where
F: Fn(&str) -> Option<i32> + Clone,
{
Self { value : read_field ("Estimate!!INCOME AND BENEFITS (IN 2019 INFLATION-ADJUSTED DOLLARS)!!Total households!!With Social Security") , mean_social_security_income_dollars : read_field ("Estimate!!INCOME AND BENEFITS (IN 2019 INFLATION-ADJUSTED DOLLARS)!!Total households!!With Social Security!!Mean Social Security income (dollars)") , }
}
}
#[derive(GraphQLObject, Copy, Clone, Debug)]
struct WithRetirementIncome {
value: Option<i32>,
mean_retirement_income_dollars: Option<i32>,
}
impl WithRetirementIncome {
pub fn new<F>(read_field: F) -> Self
where
F: Fn(&str) -> Option<i32> + Clone,
{
Self { value : read_field ("Estimate!!INCOME AND BENEFITS (IN 2019 INFLATION-ADJUSTED DOLLARS)!!Total households!!With retirement income") , mean_retirement_income_dollars : read_field ("Estimate!!INCOME AND BENEFITS (IN 2019 INFLATION-ADJUSTED DOLLARS)!!Total households!!With retirement income!!Mean retirement income (dollars)") , }
}
}
#[derive(GraphQLObject, Copy, Clone, Debug)]
struct WithSupplementalSecurityIncome {
value: Option<i32>,
mean_supplemental_security_income_dollars: Option<i32>,
}
impl WithSupplementalSecurityIncome {
pub fn new<F>(read_field: F) -> Self
where
F: Fn(&str) -> Option<i32> + Clone,
{
Self { value : read_field ("Estimate!!INCOME AND BENEFITS (IN 2019 INFLATION-ADJUSTED DOLLARS)!!Total households!!With Supplemental Security Income") , mean_supplemental_security_income_dollars : read_field ("Estimate!!INCOME AND BENEFITS (IN 2019 INFLATION-ADJUSTED DOLLARS)!!Total households!!With Supplemental Security Income!!Mean Supplemental Security Income (dollars)") , }
}
}
#[derive(GraphQLObject, Copy, Clone, Debug)]
struct WithCashPublicAssistanceIncome {
value: Option<i32>,
mean_cash_public_assistance_income_dollars: Option<i32>,
}
impl WithCashPublicAssistanceIncome {
pub fn new<F>(read_field: F) -> Self
where
F: Fn(&str) -> Option<i32> + Clone,
{
Self { value : read_field ("Estimate!!INCOME AND BENEFITS (IN 2019 INFLATION-ADJUSTED DOLLARS)!!Total households!!With cash public assistance income") , mean_cash_public_assistance_income_dollars : read_field ("Estimate!!INCOME AND BENEFITS (IN 2019 INFLATION-ADJUSTED DOLLARS)!!Total households!!With cash public assistance income!!Mean cash public assistance income (dollars)") , }
}
}
#[derive(GraphQLObject, Copy, Clone, Debug)]
struct Families {
value: Option<i32>,
mean_family_income_dollars: Option<i32>,
median_family_income_dollars: Option<i32>,
usd_200000_or_more: Option<i32>,
usd_150000_to_usd_199999: Option<i32>,
usd_100000_to_usd_149999: Option<i32>,
usd_75000_to_usd_99999: Option<i32>,
usd_50000_to_usd_74999: Option<i32>,
usd_35000_to_usd_49999: Option<i32>,
usd_25000_to_usd_34999: Option<i32>,
usd_15000_to_usd_24999: Option<i32>,
usd_10000_to_usd_14999: Option<i32>,
less_than_usd_10000: Option<i32>,
}
impl Families {
pub fn new<F>(read_field: F) -> Self
where
F: Fn(&str) -> Option<i32> + Clone,
{
Self { value : read_field ("Estimate!!INCOME AND BENEFITS (IN 2019 INFLATION-ADJUSTED DOLLARS)!!Families") , mean_family_income_dollars : read_field ("Estimate!!INCOME AND BENEFITS (IN 2019 INFLATION-ADJUSTED DOLLARS)!!Families!!Mean family income (dollars)") , median_family_income_dollars : read_field ("Estimate!!INCOME AND BENEFITS (IN 2019 INFLATION-ADJUSTED DOLLARS)!!Families!!Median family income (dollars)") , usd_200000_or_more : read_field ("Estimate!!INCOME AND BENEFITS (IN 2019 INFLATION-ADJUSTED DOLLARS)!!Families!!$200,000 or more") , usd_150000_to_usd_199999 : read_field ("Estimate!!INCOME AND BENEFITS (IN 2019 INFLATION-ADJUSTED DOLLARS)!!Families!!$150,000 to $199,999") , usd_100000_to_usd_149999 : read_field ("Estimate!!INCOME AND BENEFITS (IN 2019 INFLATION-ADJUSTED DOLLARS)!!Families!!$100,000 to $149,999") , usd_75000_to_usd_99999 : read_field ("Estimate!!INCOME AND BENEFITS (IN 2019 INFLATION-ADJUSTED DOLLARS)!!Families!!$75,000 to $99,999") , usd_50000_to_usd_74999 : read_field ("Estimate!!INCOME AND BENEFITS (IN 2019 INFLATION-ADJUSTED DOLLARS)!!Families!!$50,000 to $74,999") , usd_35000_to_usd_49999 : read_field ("Estimate!!INCOME AND BENEFITS (IN 2019 INFLATION-ADJUSTED DOLLARS)!!Families!!$35,000 to $49,999") , usd_25000_to_usd_34999 : read_field ("Estimate!!INCOME AND BENEFITS (IN 2019 INFLATION-ADJUSTED DOLLARS)!!Families!!$25,000 to $34,999") , usd_15000_to_usd_24999 : read_field ("Estimate!!INCOME AND BENEFITS (IN 2019 INFLATION-ADJUSTED DOLLARS)!!Families!!$15,000 to $24,999") , usd_10000_to_usd_14999 : read_field ("Estimate!!INCOME AND BENEFITS (IN 2019 INFLATION-ADJUSTED DOLLARS)!!Families!!$10,000 to $14,999") , less_than_usd_10000 : read_field ("Estimate!!INCOME AND BENEFITS (IN 2019 INFLATION-ADJUSTED DOLLARS)!!Families!!Less than $10,000") , }
}
}
#[derive(GraphQLObject, Copy, Clone, Debug)]
struct NonfamilyHouseholds {
value: Option<i32>,
mean_nonfamily_income_dollars: Option<i32>,
median_nonfamily_income_dollars: Option<i32>,
}
impl NonfamilyHouseholds {
pub fn new<F>(read_field: F) -> Self
where
F: Fn(&str) -> Option<i32> + Clone,
{
Self { value : read_field ("Estimate!!INCOME AND BENEFITS (IN 2019 INFLATION-ADJUSTED DOLLARS)!!Nonfamily households") , mean_nonfamily_income_dollars : read_field ("Estimate!!INCOME AND BENEFITS (IN 2019 INFLATION-ADJUSTED DOLLARS)!!Nonfamily households!!Mean nonfamily income (dollars)") , median_nonfamily_income_dollars : read_field ("Estimate!!INCOME AND BENEFITS (IN 2019 INFLATION-ADJUSTED DOLLARS)!!Nonfamily households!!Median nonfamily income (dollars)") , }
}
}
#[derive(GraphQLObject, Copy, Clone, Debug)]
struct HealthInsuranceCoverage {
civilian_noninstitutionalized_population_19_to_64_years:
CivilianNoninstitutionalizedPopulation19To64Years,
civilian_noninstitutionalized_population_under_19_years:
CivilianNoninstitutionalizedPopulationUnder19Years,
civilian_noninstitutionalized_population: CivilianNoninstitutionalizedPopulation,
}
impl HealthInsuranceCoverage {
pub fn new<F>(read_field: F) -> Self
where
F: Fn(&str) -> Option<i32> + Clone,
{
Self {
civilian_noninstitutionalized_population_19_to_64_years:
CivilianNoninstitutionalizedPopulation19To64Years::new(read_field.clone()),
civilian_noninstitutionalized_population_under_19_years:
CivilianNoninstitutionalizedPopulationUnder19Years::new(read_field.clone()),
civilian_noninstitutionalized_population: CivilianNoninstitutionalizedPopulation::new(
read_field.clone(),
),
}
}
}
#[derive(GraphQLObject, Copy, Clone, Debug)]
struct CivilianNoninstitutionalizedPopulation {
value: Option<i32>,
no_health_insurance_coverage: Option<i32>,
with_health_insurance_coverage: WithHealthInsuranceCoverage,
}
impl CivilianNoninstitutionalizedPopulation {
pub fn new<F>(read_field: F) -> Self
where
F: Fn(&str) -> Option<i32> + Clone,
{
Self { value : read_field ("Estimate!!HEALTH INSURANCE COVERAGE!!Civilian noninstitutionalized population") , no_health_insurance_coverage : read_field ("Estimate!!HEALTH INSURANCE COVERAGE!!Civilian noninstitutionalized population!!No health insurance coverage") , with_health_insurance_coverage : WithHealthInsuranceCoverage :: new (read_field . clone ()) , }
}
}
#[derive(GraphQLObject, Copy, Clone, Debug)]
struct WithHealthInsuranceCoverage {
value: Option<i32>,
with_public_coverage: Option<i32>,
with_private_health_insurance: Option<i32>,
}
impl WithHealthInsuranceCoverage {
pub fn new<F>(read_field: F) -> Self
where
F: Fn(&str) -> Option<i32> + Clone,
{
Self { value : read_field ("Estimate!!HEALTH INSURANCE COVERAGE!!Civilian noninstitutionalized population!!With health insurance coverage") , with_public_coverage : read_field ("Estimate!!HEALTH INSURANCE COVERAGE!!Civilian noninstitutionalized population!!With health insurance coverage!!With public coverage") , with_private_health_insurance : read_field ("Estimate!!HEALTH INSURANCE COVERAGE!!Civilian noninstitutionalized population!!With health insurance coverage!!With private health insurance") , }
}
}
#[derive(GraphQLObject, Copy, Clone, Debug)]
struct CivilianNoninstitutionalizedPopulationUnder19Years {
value: Option<i32>,
no_health_insurance_coverage: Option<i32>,
}
impl CivilianNoninstitutionalizedPopulationUnder19Years {
pub fn new<F>(read_field: F) -> Self
where
F: Fn(&str) -> Option<i32> + Clone,
{
Self { value : read_field ("Estimate!!HEALTH INSURANCE COVERAGE!!Civilian noninstitutionalized population under 19 years") , no_health_insurance_coverage : read_field ("Estimate!!HEALTH INSURANCE COVERAGE!!Civilian noninstitutionalized population under 19 years!!No health insurance coverage") , }
}
}
#[derive(GraphQLObject, Copy, Clone, Debug)]
struct CivilianNoninstitutionalizedPopulation19To64Years {
value: Option<i32>,
not_in_labor_force: NotInLaborForce,
in_labor_force: InLaborForce2,
}
impl CivilianNoninstitutionalizedPopulation19To64Years {
pub fn new<F>(read_field: F) -> Self
where
F: Fn(&str) -> Option<i32> + Clone,
{
Self { value : read_field ("Estimate!!HEALTH INSURANCE COVERAGE!!Civilian noninstitutionalized population 19 to 64 years") , not_in_labor_force : NotInLaborForce :: new (read_field . clone ()) , in_labor_force : InLaborForce2 :: new (read_field . clone ()) , }
}
}
#[derive(GraphQLObject, Copy, Clone, Debug)]
struct InLaborForce2 {
value: Option<i32>,
unemployed: Unemployed,
employed: Employed,
}
impl InLaborForce2 {
pub fn new<F>(read_field: F) -> Self
where
F: Fn(&str) -> Option<i32> + Clone,
{
Self { value : read_field ("Estimate!!HEALTH INSURANCE COVERAGE!!Civilian noninstitutionalized population 19 to 64 years!!In labor force:") , unemployed : Unemployed :: new (read_field . clone ()) , employed : Employed :: new (read_field . clone ()) , }
}
}
#[derive(GraphQLObject, Copy, Clone, Debug)]
struct Employed {
value: Option<i32>,
no_health_insurance_coverage: Option<i32>,
with_health_insurance_coverage: WithHealthInsuranceCoverage1,
}
impl Employed {
pub fn new<F>(read_field: F) -> Self
where
F: Fn(&str) -> Option<i32> + Clone,
{
Self { value : read_field ("Estimate!!HEALTH INSURANCE COVERAGE!!Civilian noninstitutionalized population 19 to 64 years!!In labor force:!!Employed:") , no_health_insurance_coverage : read_field ("Estimate!!HEALTH INSURANCE COVERAGE!!Civilian noninstitutionalized population 19 to 64 years!!In labor force:!!Employed:!!No health insurance coverage") , with_health_insurance_coverage : WithHealthInsuranceCoverage1 :: new (read_field . clone ()) , }
}
}
#[derive(GraphQLObject, Copy, Clone, Debug)]
struct WithHealthInsuranceCoverage1 {
value: Option<i32>,
with_public_coverage: Option<i32>,
with_private_health_insurance: Option<i32>,
}
impl WithHealthInsuranceCoverage1 {
pub fn new<F>(read_field: F) -> Self
where
F: Fn(&str) -> Option<i32> + Clone,
{
Self { value : read_field ("Estimate!!HEALTH INSURANCE COVERAGE!!Civilian noninstitutionalized population 19 to 64 years!!In labor force:!!Employed:!!With health insurance coverage") , with_public_coverage : read_field ("Estimate!!HEALTH INSURANCE COVERAGE!!Civilian noninstitutionalized population 19 to 64 years!!In labor force:!!Employed:!!With health insurance coverage!!With public coverage") , with_private_health_insurance : read_field ("Estimate!!HEALTH INSURANCE COVERAGE!!Civilian noninstitutionalized population 19 to 64 years!!In labor force:!!Employed:!!With health insurance coverage!!With private health insurance") , }
}
}
#[derive(GraphQLObject, Copy, Clone, Debug)]
struct Unemployed {
value: Option<i32>,
no_health_insurance_coverage: Option<i32>,
with_health_insurance_coverage: WithHealthInsuranceCoverage2,
}
impl Unemployed {
pub fn new<F>(read_field: F) -> Self
where
F: Fn(&str) -> Option<i32> + Clone,
{
Self { value : read_field ("Estimate!!HEALTH INSURANCE COVERAGE!!Civilian noninstitutionalized population 19 to 64 years!!In labor force:!!Unemployed:") , no_health_insurance_coverage : read_field ("Estimate!!HEALTH INSURANCE COVERAGE!!Civilian noninstitutionalized population 19 to 64 years!!In labor force:!!Unemployed:!!No health insurance coverage") , with_health_insurance_coverage : WithHealthInsuranceCoverage2 :: new (read_field . clone ()) , }
}
}
#[derive(GraphQLObject, Copy, Clone, Debug)]
struct WithHealthInsuranceCoverage2 {
value: Option<i32>,
with_public_coverage: Option<i32>,
with_private_health_insurance: Option<i32>,
}
impl WithHealthInsuranceCoverage2 {
pub fn new<F>(read_field: F) -> Self
where
F: Fn(&str) -> Option<i32> + Clone,
{
Self { value : read_field ("Estimate!!HEALTH INSURANCE COVERAGE!!Civilian noninstitutionalized population 19 to 64 years!!In labor force:!!Unemployed:!!With health insurance coverage") , with_public_coverage : read_field ("Estimate!!HEALTH INSURANCE COVERAGE!!Civilian noninstitutionalized population 19 to 64 years!!In labor force:!!Unemployed:!!With health insurance coverage!!With public coverage") , with_private_health_insurance : read_field ("Estimate!!HEALTH INSURANCE COVERAGE!!Civilian noninstitutionalized population 19 to 64 years!!In labor force:!!Unemployed:!!With health insurance coverage!!With private health insurance") , }
}
}
#[derive(GraphQLObject, Copy, Clone, Debug)]
struct NotInLaborForce {
value: Option<i32>,
no_health_insurance_coverage: Option<i32>,
with_health_insurance_coverage: WithHealthInsuranceCoverage3,
}
impl NotInLaborForce {
pub fn new<F>(read_field: F) -> Self
where
F: Fn(&str) -> Option<i32> + Clone,
{
Self { value : read_field ("Estimate!!HEALTH INSURANCE COVERAGE!!Civilian noninstitutionalized population 19 to 64 years!!Not in labor force:") , no_health_insurance_coverage : read_field ("Estimate!!HEALTH INSURANCE COVERAGE!!Civilian noninstitutionalized population 19 to 64 years!!Not in labor force:!!No health insurance coverage") , with_health_insurance_coverage : WithHealthInsuranceCoverage3 :: new (read_field . clone ()) , }
}
}
#[derive(GraphQLObject, Copy, Clone, Debug)]
struct WithHealthInsuranceCoverage3 {
value: Option<i32>,
with_public_coverage: Option<i32>,
with_private_health_insurance: Option<i32>,
}
impl WithHealthInsuranceCoverage3 {
pub fn new<F>(read_field: F) -> Self
where
F: Fn(&str) -> Option<i32> + Clone,
{
Self { value : read_field ("Estimate!!HEALTH INSURANCE COVERAGE!!Civilian noninstitutionalized population 19 to 64 years!!Not in labor force:!!With health insurance coverage") , with_public_coverage : read_field ("Estimate!!HEALTH INSURANCE COVERAGE!!Civilian noninstitutionalized population 19 to 64 years!!Not in labor force:!!With health insurance coverage!!With public coverage") , with_private_health_insurance : read_field ("Estimate!!HEALTH INSURANCE COVERAGE!!Civilian noninstitutionalized population 19 to 64 years!!Not in labor force:!!With health insurance coverage!!With private health insurance") , }
}
}
#[derive(GraphQLObject, Copy, Clone, Debug)]
struct PercentageOfFamiliesAndPeopleWhoseIncomeInThePast12MonthsIsBelowThePovertyLevel {
all_people: AllPeople,
all_families: AllFamilies,
}
impl PercentageOfFamiliesAndPeopleWhoseIncomeInThePast12MonthsIsBelowThePovertyLevel {
pub fn new<F>(read_field: F) -> Self
where
F: Fn(&str) -> Option<i32> + Clone,
{
Self {
all_people: AllPeople::new(read_field.clone()),
all_families: AllFamilies::new(read_field.clone()),
}
}
}
#[derive(GraphQLObject, Copy, Clone, Debug)]
struct AllFamilies {
value: Option<i32>,
families_with_female_householder_no_spouse_present:
FamiliesWithFemaleHouseholderNoSpousePresent,
married_couple_families: MarriedCoupleFamilies,
with_related_children_of_the_householder_under_18_years:
WithRelatedChildrenOfTheHouseholderUnder18Years,
}
impl AllFamilies {
pub fn new<F>(read_field: F) -> Self
where
F: Fn(&str) -> Option<i32> + Clone,
{
Self { value : read_field ("Estimate!!PERCENTAGE OF FAMILIES AND PEOPLE WHOSE INCOME IN THE PAST 12 MONTHS IS BELOW THE POVERTY LEVEL!!All families") , families_with_female_householder_no_spouse_present : FamiliesWithFemaleHouseholderNoSpousePresent :: new (read_field . clone ()) , married_couple_families : MarriedCoupleFamilies :: new (read_field . clone ()) , with_related_children_of_the_householder_under_18_years : WithRelatedChildrenOfTheHouseholderUnder18Years :: new (read_field . clone ()) , }
}
}
#[derive(GraphQLObject, Copy, Clone, Debug)]
struct WithRelatedChildrenOfTheHouseholderUnder18Years {
value: Option<i32>,
with_related_children_of_the_householder_under_5_years_only: Option<i32>,
}
impl WithRelatedChildrenOfTheHouseholderUnder18Years {
pub fn new<F>(read_field: F) -> Self
where
F: Fn(&str) -> Option<i32> + Clone,
{
Self { value : read_field ("Estimate!!PERCENTAGE OF FAMILIES AND PEOPLE WHOSE INCOME IN THE PAST 12 MONTHS IS BELOW THE POVERTY LEVEL!!All families!!With related children of the householder under 18 years") , with_related_children_of_the_householder_under_5_years_only : read_field ("Estimate!!PERCENTAGE OF FAMILIES AND PEOPLE WHOSE INCOME IN THE PAST 12 MONTHS IS BELOW THE POVERTY LEVEL!!All families!!With related children of the householder under 18 years!!With related children of the householder under 5 years only") , }
}
}
#[derive(GraphQLObject, Copy, Clone, Debug)]
struct MarriedCoupleFamilies {
value: Option<i32>,
with_related_children_of_the_householder_under_18_years:
WithRelatedChildrenOfTheHouseholderUnder18Years1,
}
impl MarriedCoupleFamilies {
pub fn new<F>(read_field: F) -> Self
where
F: Fn(&str) -> Option<i32> + Clone,
{
Self { value : read_field ("Estimate!!PERCENTAGE OF FAMILIES AND PEOPLE WHOSE INCOME IN THE PAST 12 MONTHS IS BELOW THE POVERTY LEVEL!!All families!!Married couple families") , with_related_children_of_the_householder_under_18_years : WithRelatedChildrenOfTheHouseholderUnder18Years1 :: new (read_field . clone ()) , }
}
}
#[derive(GraphQLObject, Copy, Clone, Debug)]
struct WithRelatedChildrenOfTheHouseholderUnder18Years1 {
value: Option<i32>,
with_related_children_of_the_householder_under_5_years_only: Option<i32>,
}
impl WithRelatedChildrenOfTheHouseholderUnder18Years1 {
pub fn new<F>(read_field: F) -> Self
where
F: Fn(&str) -> Option<i32> + Clone,
{
Self { value : read_field ("Estimate!!PERCENTAGE OF FAMILIES AND PEOPLE WHOSE INCOME IN THE PAST 12 MONTHS IS BELOW THE POVERTY LEVEL!!All families!!Married couple families!!With related children of the householder under 18 years") , with_related_children_of_the_householder_under_5_years_only : read_field ("Estimate!!PERCENTAGE OF FAMILIES AND PEOPLE WHOSE INCOME IN THE PAST 12 MONTHS IS BELOW THE POVERTY LEVEL!!All families!!Married couple families!!With related children of the householder under 18 years!!With related children of the householder under 5 years only") , }
}
}
#[derive(GraphQLObject, Copy, Clone, Debug)]
struct FamiliesWithFemaleHouseholderNoSpousePresent {
value: Option<i32>,
with_related_children_of_the_householder_under_18_years:
WithRelatedChildrenOfTheHouseholderUnder18Years2,
}
impl FamiliesWithFemaleHouseholderNoSpousePresent {
pub fn new<F>(read_field: F) -> Self
where
F: Fn(&str) -> Option<i32> + Clone,
{
Self { value : read_field ("Estimate!!PERCENTAGE OF FAMILIES AND PEOPLE WHOSE INCOME IN THE PAST 12 MONTHS IS BELOW THE POVERTY LEVEL!!All families!!Families with female householder, no spouse present") , with_related_children_of_the_householder_under_18_years : WithRelatedChildrenOfTheHouseholderUnder18Years2 :: new (read_field . clone ()) , }
}
}
#[derive(GraphQLObject, Copy, Clone, Debug)]
struct WithRelatedChildrenOfTheHouseholderUnder18Years2 {
value: Option<i32>,
with_related_children_of_the_householder_under_5_years_only: Option<i32>,
}
impl WithRelatedChildrenOfTheHouseholderUnder18Years2 {
pub fn new<F>(read_field: F) -> Self
where
F: Fn(&str) -> Option<i32> + Clone,
{
Self { value : read_field ("Estimate!!PERCENTAGE OF FAMILIES AND PEOPLE WHOSE INCOME IN THE PAST 12 MONTHS IS BELOW THE POVERTY LEVEL!!All families!!Families with female householder, no spouse present!!With related children of the householder under 18 years") , with_related_children_of_the_householder_under_5_years_only : read_field ("Estimate!!PERCENTAGE OF FAMILIES AND PEOPLE WHOSE INCOME IN THE PAST 12 MONTHS IS BELOW THE POVERTY LEVEL!!All families!!Families with female householder, no spouse present!!With related children of the householder under 18 years!!With related children of the householder under 5 years only") , }
}
}
#[derive(GraphQLObject, Copy, Clone, Debug)]
struct AllPeople {
value: Option<i32>,
unrelated_individuals_15_years_and_over: Option<i32>,
people_in_families: Option<i32>,
age_18_and_over: Age18AndOver,
under_18_years: Under18Years1,
}
impl AllPeople {
pub fn new<F>(read_field: F) -> Self
where
F: Fn(&str) -> Option<i32> + Clone,
{
Self { value : read_field ("Estimate!!PERCENTAGE OF FAMILIES AND PEOPLE WHOSE INCOME IN THE PAST 12 MONTHS IS BELOW THE POVERTY LEVEL!!All people") , unrelated_individuals_15_years_and_over : read_field ("Estimate!!PERCENTAGE OF FAMILIES AND PEOPLE WHOSE INCOME IN THE PAST 12 MONTHS IS BELOW THE POVERTY LEVEL!!All people!!Unrelated individuals 15 years and over") , people_in_families : read_field ("Estimate!!PERCENTAGE OF FAMILIES AND PEOPLE WHOSE INCOME IN THE PAST 12 MONTHS IS BELOW THE POVERTY LEVEL!!All people!!People in families") , age_18_and_over : Age18AndOver :: new (read_field . clone ()) , under_18_years : Under18Years1 :: new (read_field . clone ()) , }
}
}
#[derive(GraphQLObject, Copy, Clone, Debug)]
struct Under18Years1 {
value: Option<i32>,
related_children_of_the_householder_under_18_years: RelatedChildrenOfTheHouseholderUnder18Years,
}
impl Under18Years1 {
pub fn new<F>(read_field: F) -> Self
where
F: Fn(&str) -> Option<i32> + Clone,
{
Self { value : read_field ("Estimate!!PERCENTAGE OF FAMILIES AND PEOPLE WHOSE INCOME IN THE PAST 12 MONTHS IS BELOW THE POVERTY LEVEL!!All people!!Under 18 years") , related_children_of_the_householder_under_18_years : RelatedChildrenOfTheHouseholderUnder18Years :: new (read_field . clone ()) , }
}
}
#[derive(GraphQLObject, Copy, Clone, Debug)]
struct RelatedChildrenOfTheHouseholderUnder18Years {
value: Option<i32>,
related_children_of_the_householder_5_to_17_years: Option<i32>,
related_children_of_the_householder_under_5_years: Option<i32>,
}
impl RelatedChildrenOfTheHouseholderUnder18Years {
pub fn new<F>(read_field: F) -> Self
where
F: Fn(&str) -> Option<i32> + Clone,
{
Self { value : read_field ("Estimate!!PERCENTAGE OF FAMILIES AND PEOPLE WHOSE INCOME IN THE PAST 12 MONTHS IS BELOW THE POVERTY LEVEL!!All people!!Under 18 years!!Related children of the householder under 18 years") , related_children_of_the_householder_5_to_17_years : read_field ("Estimate!!PERCENTAGE OF FAMILIES AND PEOPLE WHOSE INCOME IN THE PAST 12 MONTHS IS BELOW THE POVERTY LEVEL!!All people!!Under 18 years!!Related children of the householder under 18 years!!Related children of the householder 5 to 17 years") , related_children_of_the_householder_under_5_years : read_field ("Estimate!!PERCENTAGE OF FAMILIES AND PEOPLE WHOSE INCOME IN THE PAST 12 MONTHS IS BELOW THE POVERTY LEVEL!!All people!!Under 18 years!!Related children of the householder under 18 years!!Related children of the householder under 5 years") , }
}
}
#[derive(GraphQLObject, Copy, Clone, Debug)]
struct Age18AndOver {
value: Option<i32>,
age_65_and_over: Option<i32>,
age_18_to_64: Option<i32>,
}
impl Age18AndOver {
pub fn new<F>(read_field: F) -> Self
where
F: Fn(&str) -> Option<i32> + Clone,
{
Self { value : read_field ("Estimate!!PERCENTAGE OF FAMILIES AND PEOPLE WHOSE INCOME IN THE PAST 12 MONTHS IS BELOW THE POVERTY LEVEL!!All people!!18 years and over") , age_65_and_over : read_field ("Estimate!!PERCENTAGE OF FAMILIES AND PEOPLE WHOSE INCOME IN THE PAST 12 MONTHS IS BELOW THE POVERTY LEVEL!!All people!!18 years and over!!65 years and over") , age_18_to_64 : read_field ("Estimate!!PERCENTAGE OF FAMILIES AND PEOPLE WHOSE INCOME IN THE PAST 12 MONTHS IS BELOW THE POVERTY LEVEL!!All people!!18 years and over!!18 to 64 years") , }
}
}
#[derive(GraphQLObject, Copy, Clone, Debug)]
struct Dp04 {
gross_rent_as_a_percentage_of_household_income_grapi:
GrossRentAsAPercentageOfHouseholdIncomeGrapi,
gross_rent: GrossRent,
selected_monthly_owner_costs_as_a_percentage_of_household_income_smocapi:
SelectedMonthlyOwnerCostsAsAPercentageOfHouseholdIncomeSmocapi,
selected_monthly_owner_costs_smoc: SelectedMonthlyOwnerCostsSmoc,
mortgage_status: MortgageStatus,
value: Value,
occupants_per_room: OccupantsPerRoom,
selected_characteristics: SelectedCharacteristics,
house_heating_fuel: HouseHeatingFuel,
vehicles_available: VehiclesAvailable,
year_householder_moved_into_unit: YearHouseholderMovedIntoUnit,
housing_tenure: HousingTenure,
bedrooms: Bedrooms,
rooms: Rooms,
year_structure_built: YearStructureBuilt,
units_in_structure: UnitsInStructure,
housing_occupancy: HousingOccupancy,
}
impl Dp04 {
pub fn new<F>(read_field: F) -> Self
where
F: Fn(&str) -> Option<i32> + Clone,
{
Self {
gross_rent_as_a_percentage_of_household_income_grapi:
GrossRentAsAPercentageOfHouseholdIncomeGrapi::new(read_field.clone()),
gross_rent: GrossRent::new(read_field.clone()),
selected_monthly_owner_costs_as_a_percentage_of_household_income_smocapi:
SelectedMonthlyOwnerCostsAsAPercentageOfHouseholdIncomeSmocapi::new(
read_field.clone(),
),
selected_monthly_owner_costs_smoc: SelectedMonthlyOwnerCostsSmoc::new(
read_field.clone(),
),
mortgage_status: MortgageStatus::new(read_field.clone()),
value: Value::new(read_field.clone()),
occupants_per_room: OccupantsPerRoom::new(read_field.clone()),
selected_characteristics: SelectedCharacteristics::new(read_field.clone()),
house_heating_fuel: HouseHeatingFuel::new(read_field.clone()),
vehicles_available: VehiclesAvailable::new(read_field.clone()),
year_householder_moved_into_unit: YearHouseholderMovedIntoUnit::new(read_field.clone()),
housing_tenure: HousingTenure::new(read_field.clone()),
bedrooms: Bedrooms::new(read_field.clone()),
rooms: Rooms::new(read_field.clone()),
year_structure_built: YearStructureBuilt::new(read_field.clone()),
units_in_structure: UnitsInStructure::new(read_field.clone()),
housing_occupancy: HousingOccupancy::new(read_field.clone()),
}
}
}
#[derive(GraphQLObject, Copy, Clone, Debug)]
struct HousingOccupancy {
total_housing_units: TotalHousingUnits,
}
impl HousingOccupancy {
pub fn new<F>(read_field: F) -> Self
where
F: Fn(&str) -> Option<i32> + Clone,
{
Self {
total_housing_units: TotalHousingUnits::new(read_field.clone()),
}
}
}
#[derive(GraphQLObject, Copy, Clone, Debug)]
struct TotalHousingUnits {
value: Option<i32>,
rental_vacancy_rate: Option<i32>,
homeowner_vacancy_rate: Option<i32>,
vacant_housing_units: Option<i32>,
occupied_housing_units: Option<i32>,
}
impl TotalHousingUnits {
pub fn new<F>(read_field: F) -> Self
where
F: Fn(&str) -> Option<i32> + Clone,
{
Self {
value: read_field("Estimate!!HOUSING OCCUPANCY!!Total housing units"),
rental_vacancy_rate: read_field(
"Estimate!!HOUSING OCCUPANCY!!Total housing units!!Rental vacancy rate",
),
homeowner_vacancy_rate: read_field(
"Estimate!!HOUSING OCCUPANCY!!Total housing units!!Homeowner vacancy rate",
),
vacant_housing_units: read_field(
"Estimate!!HOUSING OCCUPANCY!!Total housing units!!Vacant housing units",
),
occupied_housing_units: read_field(
"Estimate!!HOUSING OCCUPANCY!!Total housing units!!Occupied housing units",
),
}
}
}
#[derive(GraphQLObject, Copy, Clone, Debug)]
struct UnitsInStructure {
total_housing_units: TotalHousingUnits1,
}
impl UnitsInStructure {
pub fn new<F>(read_field: F) -> Self
where
F: Fn(&str) -> Option<i32> + Clone,
{
Self {
total_housing_units: TotalHousingUnits1::new(read_field.clone()),
}
}
}
#[derive(GraphQLObject, Copy, Clone, Debug)]
struct TotalHousingUnits1 {
value: Option<i32>,
boat_rv_van_etc: Option<i32>,
mobile_home: Option<i32>,
units_20_or_more: Option<i32>,
units_10_to_19: Option<i32>,
units_5_to_9: Option<i32>,
units_3_or_4: Option<i32>,
units_2: Option<i32>,
one_unit_attached: Option<i32>,
one_unit_detached: Option<i32>,
}
impl TotalHousingUnits1 {
pub fn new<F>(read_field: F) -> Self
where
F: Fn(&str) -> Option<i32> + Clone,
{
Self {
value: read_field("Estimate!!UNITS IN STRUCTURE!!Total housing units"),
boat_rv_van_etc: read_field(
"Estimate!!UNITS IN STRUCTURE!!Total housing units!!Boat, RV, van, etc.",
),
mobile_home: read_field(
"Estimate!!UNITS IN STRUCTURE!!Total housing units!!Mobile home",
),
units_20_or_more: read_field(
"Estimate!!UNITS IN STRUCTURE!!Total housing units!!20 or more units",
),
units_10_to_19: read_field(
"Estimate!!UNITS IN STRUCTURE!!Total housing units!!10 to 19 units",
),
units_5_to_9: read_field(
"Estimate!!UNITS IN STRUCTURE!!Total housing units!!5 to 9 units",
),
units_3_or_4: read_field(
"Estimate!!UNITS IN STRUCTURE!!Total housing units!!3 or 4 units",
),
units_2: read_field("Estimate!!UNITS IN STRUCTURE!!Total housing units!!2 units"),
one_unit_attached: read_field(
"Estimate!!UNITS IN STRUCTURE!!Total housing units!!1-unit, attached",
),
one_unit_detached: read_field(
"Estimate!!UNITS IN STRUCTURE!!Total housing units!!1-unit, detached",
),
}
}
}
#[derive(GraphQLObject, Copy, Clone, Debug)]
struct YearStructureBuilt {
total_housing_units: TotalHousingUnits2,
}
impl YearStructureBuilt {
pub fn new<F>(read_field: F) -> Self
where
F: Fn(&str) -> Option<i32> + Clone,
{
Self {
total_housing_units: TotalHousingUnits2::new(read_field.clone()),
}
}
}
#[derive(GraphQLObject, Copy, Clone, Debug)]
struct TotalHousingUnits2 {
value: Option<i32>,
built_1939_or_earlier: Option<i32>,
built_1940_to_1949: Option<i32>,
built_1950_to_1959: Option<i32>,
built_1960_to_1969: Option<i32>,
built_1970_to_1979: Option<i32>,
built_1980_to_1989: Option<i32>,
built_1990_to_1999: Option<i32>,
built_2000_to_2009: Option<i32>,
built_2010_to_2013: Option<i32>,
built_2014_or_later: Option<i32>,
}
impl TotalHousingUnits2 {
pub fn new<F>(read_field: F) -> Self
where
F: Fn(&str) -> Option<i32> + Clone,
{
Self {
value: read_field("Estimate!!YEAR STRUCTURE BUILT!!Total housing units"),
built_1939_or_earlier: read_field(
"Estimate!!YEAR STRUCTURE BUILT!!Total housing units!!Built 1939 or earlier",
),
built_1940_to_1949: read_field(
"Estimate!!YEAR STRUCTURE BUILT!!Total housing units!!Built 1940 to 1949",
),
built_1950_to_1959: read_field(
"Estimate!!YEAR STRUCTURE BUILT!!Total housing units!!Built 1950 to 1959",
),
built_1960_to_1969: read_field(
"Estimate!!YEAR STRUCTURE BUILT!!Total housing units!!Built 1960 to 1969",
),
built_1970_to_1979: read_field(
"Estimate!!YEAR STRUCTURE BUILT!!Total housing units!!Built 1970 to 1979",
),
built_1980_to_1989: read_field(
"Estimate!!YEAR STRUCTURE BUILT!!Total housing units!!Built 1980 to 1989",
),
built_1990_to_1999: read_field(
"Estimate!!YEAR STRUCTURE BUILT!!Total housing units!!Built 1990 to 1999",
),
built_2000_to_2009: read_field(
"Estimate!!YEAR STRUCTURE BUILT!!Total housing units!!Built 2000 to 2009",
),
built_2010_to_2013: read_field(
"Estimate!!YEAR STRUCTURE BUILT!!Total housing units!!Built 2010 to 2013",
),
built_2014_or_later: read_field(
"Estimate!!YEAR STRUCTURE BUILT!!Total housing units!!Built 2014 or later",
),
}
}
}
#[derive(GraphQLObject, Copy, Clone, Debug)]
struct Rooms {
total_housing_units: TotalHousingUnits3,
}
impl Rooms {
pub fn new<F>(read_field: F) -> Self
where
F: Fn(&str) -> Option<i32> + Clone,
{
Self {
total_housing_units: TotalHousingUnits3::new(read_field.clone()),
}
}
}
#[derive(GraphQLObject, Copy, Clone, Debug)]
struct TotalHousingUnits3 {
value: Option<i32>,
median_rooms: Option<i32>,
nine_or_more_rooms: Option<i32>,
eight_rooms: Option<i32>,
seven_rooms: Option<i32>,
six_rooms: Option<i32>,
five_rooms: Option<i32>,
four_rooms: Option<i32>,
three_rooms: Option<i32>,
two_rooms: Option<i32>,
one_room: Option<i32>,
}
impl TotalHousingUnits3 {
pub fn new<F>(read_field: F) -> Self
where
F: Fn(&str) -> Option<i32> + Clone,
{
Self {
value: read_field("Estimate!!ROOMS!!Total housing units"),
median_rooms: read_field("Estimate!!ROOMS!!Total housing units!!Median rooms"),
nine_or_more_rooms: read_field("Estimate!!ROOMS!!Total housing units!!9 rooms or more"),
eight_rooms: read_field("Estimate!!ROOMS!!Total housing units!!8 rooms"),
seven_rooms: read_field("Estimate!!ROOMS!!Total housing units!!7 rooms"),
six_rooms: read_field("Estimate!!ROOMS!!Total housing units!!6 rooms"),
five_rooms: read_field("Estimate!!ROOMS!!Total housing units!!5 rooms"),
four_rooms: read_field("Estimate!!ROOMS!!Total housing units!!4 rooms"),
three_rooms: read_field("Estimate!!ROOMS!!Total housing units!!3 rooms"),
two_rooms: read_field("Estimate!!ROOMS!!Total housing units!!2 rooms"),
one_room: read_field("Estimate!!ROOMS!!Total housing units!!1 room"),
}
}
}
#[derive(GraphQLObject, Copy, Clone, Debug)]
struct Bedrooms {
total_housing_units: TotalHousingUnits4,
}
impl Bedrooms {
pub fn new<F>(read_field: F) -> Self
where
F: Fn(&str) -> Option<i32> + Clone,
{
Self {
total_housing_units: TotalHousingUnits4::new(read_field.clone()),
}
}
}
#[derive(GraphQLObject, Copy, Clone, Debug)]
struct TotalHousingUnits4 {
value: Option<i32>,
five_or_more_bedrooms: Option<i32>,
four_bedrooms: Option<i32>,
three_bedrooms: Option<i32>,
two_bedrooms: Option<i32>,
one_bedroom: Option<i32>,
no_bedroom: Option<i32>,
}
impl TotalHousingUnits4 {
pub fn new<F>(read_field: F) -> Self
where
F: Fn(&str) -> Option<i32> + Clone,
{
Self {
value: read_field("Estimate!!BEDROOMS!!Total housing units"),
five_or_more_bedrooms: read_field(
"Estimate!!BEDROOMS!!Total housing units!!5 or more bedrooms",
),
four_bedrooms: read_field("Estimate!!BEDROOMS!!Total housing units!!4 bedrooms"),
three_bedrooms: read_field("Estimate!!BEDROOMS!!Total housing units!!3 bedrooms"),
two_bedrooms: read_field("Estimate!!BEDROOMS!!Total housing units!!2 bedrooms"),
one_bedroom: read_field("Estimate!!BEDROOMS!!Total housing units!!1 bedroom"),
no_bedroom: read_field("Estimate!!BEDROOMS!!Total housing units!!No bedroom"),
}
}
}
#[derive(GraphQLObject, Copy, Clone, Debug)]
struct HousingTenure {
occupied_housing_units: OccupiedHousingUnits,
}
impl HousingTenure {
pub fn new<F>(read_field: F) -> Self
where
F: Fn(&str) -> Option<i32> + Clone,
{
Self {
occupied_housing_units: OccupiedHousingUnits::new(read_field.clone()),
}
}
}
#[derive(GraphQLObject, Copy, Clone, Debug)]
struct OccupiedHousingUnits {
value: Option<i32>,
average_household_size_of_renteroccupied_unit: Option<i32>,
average_household_size_of_owneroccupied_unit: Option<i32>,
renteroccupied: Option<i32>,
owneroccupied: Option<i32>,
}
impl OccupiedHousingUnits {
pub fn new<F>(read_field: F) -> Self
where
F: Fn(&str) -> Option<i32> + Clone,
{
Self { value : read_field ("Estimate!!HOUSING TENURE!!Occupied housing units") , average_household_size_of_renteroccupied_unit : read_field ("Estimate!!HOUSING TENURE!!Occupied housing units!!Average household size of renter-occupied unit") , average_household_size_of_owneroccupied_unit : read_field ("Estimate!!HOUSING TENURE!!Occupied housing units!!Average household size of owner-occupied unit") , renteroccupied : read_field ("Estimate!!HOUSING TENURE!!Occupied housing units!!Renter-occupied") , owneroccupied : read_field ("Estimate!!HOUSING TENURE!!Occupied housing units!!Owner-occupied") , }
}
}
#[derive(GraphQLObject, Copy, Clone, Debug)]
struct YearHouseholderMovedIntoUnit {
occupied_housing_units: OccupiedHousingUnits1,
}
impl YearHouseholderMovedIntoUnit {
pub fn new<F>(read_field: F) -> Self
where
F: Fn(&str) -> Option<i32> + Clone,
{
Self {
occupied_housing_units: OccupiedHousingUnits1::new(read_field.clone()),
}
}
}
#[derive(GraphQLObject, Copy, Clone, Debug)]
struct OccupiedHousingUnits1 {
value: Option<i32>,
moved_in_1989_and_earlier: Option<i32>,
moved_in_1990_to_1999: Option<i32>,
moved_in_2000_to_2009: Option<i32>,
moved_in_2010_to_2014: Option<i32>,
moved_in_2015_to_2016: Option<i32>,
moved_in_2017_or_later: Option<i32>,
}
impl OccupiedHousingUnits1 {
pub fn new<F>(read_field: F) -> Self
where
F: Fn(&str) -> Option<i32> + Clone,
{
Self { value : read_field ("Estimate!!YEAR HOUSEHOLDER MOVED INTO UNIT!!Occupied housing units") , moved_in_1989_and_earlier : read_field ("Estimate!!YEAR HOUSEHOLDER MOVED INTO UNIT!!Occupied housing units!!Moved in 1989 and earlier") , moved_in_1990_to_1999 : read_field ("Estimate!!YEAR HOUSEHOLDER MOVED INTO UNIT!!Occupied housing units!!Moved in 1990 to 1999") , moved_in_2000_to_2009 : read_field ("Estimate!!YEAR HOUSEHOLDER MOVED INTO UNIT!!Occupied housing units!!Moved in 2000 to 2009") , moved_in_2010_to_2014 : read_field ("Estimate!!YEAR HOUSEHOLDER MOVED INTO UNIT!!Occupied housing units!!Moved in 2010 to 2014") , moved_in_2015_to_2016 : read_field ("Estimate!!YEAR HOUSEHOLDER MOVED INTO UNIT!!Occupied housing units!!Moved in 2015 to 2016") , moved_in_2017_or_later : read_field ("Estimate!!YEAR HOUSEHOLDER MOVED INTO UNIT!!Occupied housing units!!Moved in 2017 or later") , }
}
}
#[derive(GraphQLObject, Copy, Clone, Debug)]
struct VehiclesAvailable {
occupied_housing_units: OccupiedHousingUnits2,
}
impl VehiclesAvailable {
pub fn new<F>(read_field: F) -> Self
where
F: Fn(&str) -> Option<i32> + Clone,
{
Self {
occupied_housing_units: OccupiedHousingUnits2::new(read_field.clone()),
}
}
}
#[derive(GraphQLObject, Copy, Clone, Debug)]
struct OccupiedHousingUnits2 {
value: Option<i32>,
three_or_more_vehicles_available: Option<i32>,
two_vehicles_available: Option<i32>,
one_vehicle: Option<i32>,
no_vehicles_available: Option<i32>,
}
impl OccupiedHousingUnits2 {
pub fn new<F>(read_field: F) -> Self
where
F: Fn(&str) -> Option<i32> + Clone,
{
Self { value : read_field ("Estimate!!VEHICLES AVAILABLE!!Occupied housing units") , three_or_more_vehicles_available : read_field ("Estimate!!VEHICLES AVAILABLE!!Occupied housing units!!3 or more vehicles available") , two_vehicles_available : read_field ("Estimate!!VEHICLES AVAILABLE!!Occupied housing units!!2 vehicles available") , one_vehicle : read_field ("Estimate!!VEHICLES AVAILABLE!!Occupied housing units!!1 vehicle available") , no_vehicles_available : read_field ("Estimate!!VEHICLES AVAILABLE!!Occupied housing units!!No vehicles available") , }
}
}
#[derive(GraphQLObject, Copy, Clone, Debug)]
struct HouseHeatingFuel {
occupied_housing_units: OccupiedHousingUnits3,
}
impl HouseHeatingFuel {
pub fn new<F>(read_field: F) -> Self
where
F: Fn(&str) -> Option<i32> + Clone,
{
Self {
occupied_housing_units: OccupiedHousingUnits3::new(read_field.clone()),
}
}
}
#[derive(GraphQLObject, Copy, Clone, Debug)]
struct OccupiedHousingUnits3 {
value: Option<i32>,
no_fuel_used: Option<i32>,
other_fuel: Option<i32>,
solar_energy: Option<i32>,
wood: Option<i32>,
coal_or_coke: Option<i32>,
fuel_oil_kerosene_etc: Option<i32>,
electricity: Option<i32>,
bottled_tank_or_lp_gas: Option<i32>,
utility_gas: Option<i32>,
}
impl OccupiedHousingUnits3 {
pub fn new<F>(read_field: F) -> Self
where
F: Fn(&str) -> Option<i32> + Clone,
{
Self {
value: read_field("Estimate!!HOUSE HEATING FUEL!!Occupied housing units"),
no_fuel_used: read_field(
"Estimate!!HOUSE HEATING FUEL!!Occupied housing units!!No fuel used",
),
other_fuel: read_field(
"Estimate!!HOUSE HEATING FUEL!!Occupied housing units!!Other fuel",
),
solar_energy: read_field(
"Estimate!!HOUSE HEATING FUEL!!Occupied housing units!!Solar energy",
),
wood: read_field("Estimate!!HOUSE HEATING FUEL!!Occupied housing units!!Wood"),
coal_or_coke: read_field(
"Estimate!!HOUSE HEATING FUEL!!Occupied housing units!!Coal or coke",
),
fuel_oil_kerosene_etc: read_field(
"Estimate!!HOUSE HEATING FUEL!!Occupied housing units!!Fuel oil, kerosene, etc.",
),
electricity: read_field(
"Estimate!!HOUSE HEATING FUEL!!Occupied housing units!!Electricity",
),
bottled_tank_or_lp_gas: read_field(
"Estimate!!HOUSE HEATING FUEL!!Occupied housing units!!Bottled, tank, or LP gas",
),
utility_gas: read_field(
"Estimate!!HOUSE HEATING FUEL!!Occupied housing units!!Utility gas",
),
}
}
}
#[derive(GraphQLObject, Copy, Clone, Debug)]
struct SelectedCharacteristics {
occupied_housing_units: OccupiedHousingUnits4,
}
impl SelectedCharacteristics {
pub fn new<F>(read_field: F) -> Self
where
F: Fn(&str) -> Option<i32> + Clone,
{
Self {
occupied_housing_units: OccupiedHousingUnits4::new(read_field.clone()),
}
}
}
#[derive(GraphQLObject, Copy, Clone, Debug)]
struct OccupiedHousingUnits4 {
value: Option<i32>,
no_telephone_service_available: Option<i32>,
lacking_complete_kitchen_facilities: Option<i32>,
lacking_complete_plumbing_facilities: Option<i32>,
}
impl OccupiedHousingUnits4 {
pub fn new<F>(read_field: F) -> Self
where
F: Fn(&str) -> Option<i32> + Clone,
{
Self { value : read_field ("Estimate!!SELECTED CHARACTERISTICS!!Occupied housing units") , no_telephone_service_available : read_field ("Estimate!!SELECTED CHARACTERISTICS!!Occupied housing units!!No telephone service available") , lacking_complete_kitchen_facilities : read_field ("Estimate!!SELECTED CHARACTERISTICS!!Occupied housing units!!Lacking complete kitchen facilities") , lacking_complete_plumbing_facilities : read_field ("Estimate!!SELECTED CHARACTERISTICS!!Occupied housing units!!Lacking complete plumbing facilities") , }
}
}
#[derive(GraphQLObject, Copy, Clone, Debug)]
struct OccupantsPerRoom {
occupied_housing_units: OccupiedHousingUnits5,
}
impl OccupantsPerRoom {
pub fn new<F>(read_field: F) -> Self
where
F: Fn(&str) -> Option<i32> + Clone,
{
Self {
occupied_housing_units: OccupiedHousingUnits5::new(read_field.clone()),
}
}
}
#[derive(GraphQLObject, Copy, Clone, Debug)]
struct OccupiedHousingUnits5 {
value: Option<i32>,
one_point_five_or_more: Option<i32>,
one_to_one_point_five: Option<i32>,
one_or_less: Option<i32>,
}
impl OccupiedHousingUnits5 {
pub fn new<F>(read_field: F) -> Self
where
F: Fn(&str) -> Option<i32> + Clone,
{
Self {
value: read_field("Estimate!!OCCUPANTS PER ROOM!!Occupied housing units"),
one_point_five_or_more: read_field(
"Estimate!!OCCUPANTS PER ROOM!!Occupied housing units!!1.51 or more",
),
one_to_one_point_five: read_field(
"Estimate!!OCCUPANTS PER ROOM!!Occupied housing units!!1.01 to 1.50",
),
one_or_less: read_field(
"Estimate!!OCCUPANTS PER ROOM!!Occupied housing units!!1.00 or less",
),
}
}
}
#[derive(GraphQLObject, Copy, Clone, Debug)]
struct Value {
owneroccupied_units: OwneroccupiedUnits,
}
impl Value {
pub fn new<F>(read_field: F) -> Self
where
F: Fn(&str) -> Option<i32> + Clone,
{
Self {
owneroccupied_units: OwneroccupiedUnits::new(read_field.clone()),
}
}
}
#[derive(GraphQLObject, Copy, Clone, Debug)]
struct OwneroccupiedUnits {
value: Option<i32>,
median_dollars: Option<i32>,
usd_1000000_or_more: Option<i32>,
usd_500000_to_usd_999999: Option<i32>,
usd_300000_to_usd_499999: Option<i32>,
usd_200000_to_usd_299999: Option<i32>,
usd_150000_to_usd_199999: Option<i32>,
usd_100000_to_usd_149999: Option<i32>,
usd_50000_to_usd_99999: Option<i32>,
less_than_usd_50000: Option<i32>,
}
impl OwneroccupiedUnits {
pub fn new<F>(read_field: F) -> Self
where
F: Fn(&str) -> Option<i32> + Clone,
{
Self {
value: read_field("Estimate!!VALUE!!Owner-occupied units"),
median_dollars: read_field("Estimate!!VALUE!!Owner-occupied units!!Median (dollars)"),
usd_1000000_or_more: read_field(
"Estimate!!VALUE!!Owner-occupied units!!$1,000,000 or more",
),
usd_500000_to_usd_999999: read_field(
"Estimate!!VALUE!!Owner-occupied units!!$500,000 to $999,999",
),
usd_300000_to_usd_499999: read_field(
"Estimate!!VALUE!!Owner-occupied units!!$300,000 to $499,999",
),
usd_200000_to_usd_299999: read_field(
"Estimate!!VALUE!!Owner-occupied units!!$200,000 to $299,999",
),
usd_150000_to_usd_199999: read_field(
"Estimate!!VALUE!!Owner-occupied units!!$150,000 to $199,999",
),
usd_100000_to_usd_149999: read_field(
"Estimate!!VALUE!!Owner-occupied units!!$100,000 to $149,999",
),
usd_50000_to_usd_99999: read_field(
"Estimate!!VALUE!!Owner-occupied units!!$50,000 to $99,999",
),
less_than_usd_50000: read_field(
"Estimate!!VALUE!!Owner-occupied units!!Less than $50,000",
),
}
}
}
#[derive(GraphQLObject, Copy, Clone, Debug)]
struct MortgageStatus {
owneroccupied_units: OwneroccupiedUnits1,
}
impl MortgageStatus {
pub fn new<F>(read_field: F) -> Self
where
F: Fn(&str) -> Option<i32> + Clone,
{
Self {
owneroccupied_units: OwneroccupiedUnits1::new(read_field.clone()),
}
}
}
#[derive(GraphQLObject, Copy, Clone, Debug)]
struct OwneroccupiedUnits1 {
value: Option<i32>,
housing_units_without_a_mortgage: Option<i32>,
housing_units_with_a_mortgage: Option<i32>,
}
impl OwneroccupiedUnits1 {
pub fn new<F>(read_field: F) -> Self
where
F: Fn(&str) -> Option<i32> + Clone,
{
Self {
value: read_field("Estimate!!MORTGAGE STATUS!!Owner-occupied units"),
housing_units_without_a_mortgage: read_field(
"Estimate!!MORTGAGE STATUS!!Owner-occupied units!!Housing units without a mortgage",
),
housing_units_with_a_mortgage: read_field(
"Estimate!!MORTGAGE STATUS!!Owner-occupied units!!Housing units with a mortgage",
),
}
}
}
#[derive(GraphQLObject, Copy, Clone, Debug)]
struct SelectedMonthlyOwnerCostsSmoc {
housing_units_without_a_mortgage: HousingUnitsWithoutAMortgage,
housing_units_with_a_mortgage: HousingUnitsWithAMortgage,
}
impl SelectedMonthlyOwnerCostsSmoc {
pub fn new<F>(read_field: F) -> Self
where
F: Fn(&str) -> Option<i32> + Clone,
{
Self {
housing_units_without_a_mortgage: HousingUnitsWithoutAMortgage::new(read_field.clone()),
housing_units_with_a_mortgage: HousingUnitsWithAMortgage::new(read_field.clone()),
}
}
}
#[derive(GraphQLObject, Copy, Clone, Debug)]
struct HousingUnitsWithAMortgage {
value: Option<i32>,
median_dollars: Option<i32>,
usd_3000_or_more: Option<i32>,
usd_2500_to_usd_2999: Option<i32>,
usd_2000_to_usd_2499: Option<i32>,
usd_1500_to_usd_1999: Option<i32>,
usd_1000_to_usd_1499: Option<i32>,
usd_500_to_usd_999: Option<i32>,
less_than_usd_500: Option<i32>,
}
impl HousingUnitsWithAMortgage {
pub fn new<F>(read_field: F) -> Self
where
F: Fn(&str) -> Option<i32> + Clone,
{
Self { value : read_field ("Estimate!!SELECTED MONTHLY OWNER COSTS (SMOC)!!Housing units with a mortgage") , median_dollars : read_field ("Estimate!!SELECTED MONTHLY OWNER COSTS (SMOC)!!Housing units with a mortgage!!Median (dollars)") , usd_3000_or_more : read_field ("Estimate!!SELECTED MONTHLY OWNER COSTS (SMOC)!!Housing units with a mortgage!!$3,000 or more") , usd_2500_to_usd_2999 : read_field ("Estimate!!SELECTED MONTHLY OWNER COSTS (SMOC)!!Housing units with a mortgage!!$2,500 to $2,999") , usd_2000_to_usd_2499 : read_field ("Estimate!!SELECTED MONTHLY OWNER COSTS (SMOC)!!Housing units with a mortgage!!$2,000 to $2,499") , usd_1500_to_usd_1999 : read_field ("Estimate!!SELECTED MONTHLY OWNER COSTS (SMOC)!!Housing units with a mortgage!!$1,500 to $1,999") , usd_1000_to_usd_1499 : read_field ("Estimate!!SELECTED MONTHLY OWNER COSTS (SMOC)!!Housing units with a mortgage!!$1,000 to $1,499") , usd_500_to_usd_999 : read_field ("Estimate!!SELECTED MONTHLY OWNER COSTS (SMOC)!!Housing units with a mortgage!!$500 to $999") , less_than_usd_500 : read_field ("Estimate!!SELECTED MONTHLY OWNER COSTS (SMOC)!!Housing units with a mortgage!!Less than $500") , }
}
}
#[derive(GraphQLObject, Copy, Clone, Debug)]
struct HousingUnitsWithoutAMortgage {
value: Option<i32>,
median_dollars: Option<i32>,
usd_1000_or_more: Option<i32>,
usd_800_to_usd_999: Option<i32>,
usd_600_to_usd_799: Option<i32>,
usd_400_to_usd_599: Option<i32>,
usd_250_to_usd_399: Option<i32>,
less_than_usd_250: Option<i32>,
}
impl HousingUnitsWithoutAMortgage {
pub fn new<F>(read_field: F) -> Self
where
F: Fn(&str) -> Option<i32> + Clone,
{
Self { value : read_field ("Estimate!!SELECTED MONTHLY OWNER COSTS (SMOC)!!Housing units without a mortgage") , median_dollars : read_field ("Estimate!!SELECTED MONTHLY OWNER COSTS (SMOC)!!Housing units without a mortgage!!Median (dollars)") , usd_1000_or_more : read_field ("Estimate!!SELECTED MONTHLY OWNER COSTS (SMOC)!!Housing units without a mortgage!!$1,000 or more") , usd_800_to_usd_999 : read_field ("Estimate!!SELECTED MONTHLY OWNER COSTS (SMOC)!!Housing units without a mortgage!!$800 to $999") , usd_600_to_usd_799 : read_field ("Estimate!!SELECTED MONTHLY OWNER COSTS (SMOC)!!Housing units without a mortgage!!$600 to $799") , usd_400_to_usd_599 : read_field ("Estimate!!SELECTED MONTHLY OWNER COSTS (SMOC)!!Housing units without a mortgage!!$400 to $599") , usd_250_to_usd_399 : read_field ("Estimate!!SELECTED MONTHLY OWNER COSTS (SMOC)!!Housing units without a mortgage!!$250 to $399") , less_than_usd_250 : read_field ("Estimate!!SELECTED MONTHLY OWNER COSTS (SMOC)!!Housing units without a mortgage!!Less than $250") , }
}
}
#[derive(GraphQLObject, Copy, Clone, Debug)]
struct SelectedMonthlyOwnerCostsAsAPercentageOfHouseholdIncomeSmocapi {
housing_unit_without_a_mortgage_excluding_units_where_smocapi_cannot_be_computed:
HousingUnitWithoutAMortgageExcludingUnitsWhereSmocapiCannotBeComputed,
housing_units_with_a_mortgage_excluding_units_where_smocapi_cannot_be_computed:
HousingUnitsWithAMortgageExcludingUnitsWhereSmocapiCannotBeComputed,
}
impl SelectedMonthlyOwnerCostsAsAPercentageOfHouseholdIncomeSmocapi {
pub fn new<F>(read_field: F) -> Self
where
F: Fn(&str) -> Option<i32> + Clone,
{
Self {
housing_unit_without_a_mortgage_excluding_units_where_smocapi_cannot_be_computed:
HousingUnitWithoutAMortgageExcludingUnitsWhereSmocapiCannotBeComputed::new(
read_field.clone(),
),
housing_units_with_a_mortgage_excluding_units_where_smocapi_cannot_be_computed:
HousingUnitsWithAMortgageExcludingUnitsWhereSmocapiCannotBeComputed::new(
read_field.clone(),
),
}
}
}
#[derive(GraphQLObject, Copy, Clone, Debug)]
struct HousingUnitsWithAMortgageExcludingUnitsWhereSmocapiCannotBeComputed {
value: Option<i32>,
not_computed: Option<i32>,
percent_35_or_more: Option<i32>,
percent_30_to_35: Option<i32>,
percent_25_to_30: Option<i32>,
percent_20_to_25: Option<i32>,
less_than_200_percent: Option<i32>,
}
impl HousingUnitsWithAMortgageExcludingUnitsWhereSmocapiCannotBeComputed {
pub fn new<F>(read_field: F) -> Self
where
F: Fn(&str) -> Option<i32> + Clone,
{
Self { value : read_field ("Estimate!!SELECTED MONTHLY OWNER COSTS AS A PERCENTAGE OF HOUSEHOLD INCOME (SMOCAPI)!!Housing units with a mortgage (excluding units where SMOCAPI cannot be computed)") , not_computed : read_field ("Estimate!!SELECTED MONTHLY OWNER COSTS AS A PERCENTAGE OF HOUSEHOLD INCOME (SMOCAPI)!!Housing units with a mortgage (excluding units where SMOCAPI cannot be computed)!!Not computed") , percent_35_or_more : read_field ("Estimate!!SELECTED MONTHLY OWNER COSTS AS A PERCENTAGE OF HOUSEHOLD INCOME (SMOCAPI)!!Housing units with a mortgage (excluding units where SMOCAPI cannot be computed)!!35.0 percent or more") , percent_30_to_35 : read_field ("Estimate!!SELECTED MONTHLY OWNER COSTS AS A PERCENTAGE OF HOUSEHOLD INCOME (SMOCAPI)!!Housing units with a mortgage (excluding units where SMOCAPI cannot be computed)!!30.0 to 34.9 percent") , percent_25_to_30 : read_field ("Estimate!!SELECTED MONTHLY OWNER COSTS AS A PERCENTAGE OF HOUSEHOLD INCOME (SMOCAPI)!!Housing units with a mortgage (excluding units where SMOCAPI cannot be computed)!!25.0 to 29.9 percent") , percent_20_to_25 : read_field ("Estimate!!SELECTED MONTHLY OWNER COSTS AS A PERCENTAGE OF HOUSEHOLD INCOME (SMOCAPI)!!Housing units with a mortgage (excluding units where SMOCAPI cannot be computed)!!20.0 to 24.9 percent") , less_than_200_percent : read_field ("Estimate!!SELECTED MONTHLY OWNER COSTS AS A PERCENTAGE OF HOUSEHOLD INCOME (SMOCAPI)!!Housing units with a mortgage (excluding units where SMOCAPI cannot be computed)!!Less than 20.0 percent") , }
}
}
#[derive(GraphQLObject, Copy, Clone, Debug)]
struct HousingUnitWithoutAMortgageExcludingUnitsWhereSmocapiCannotBeComputed {
value: Option<i32>,
not_computed: Option<i32>,
percent_35_or_more: Option<i32>,
percent_30_to_35: Option<i32>,
percent_25_to_30: Option<i32>,
percent_20_to_25: Option<i32>,
percent_15_to_19: Option<i32>,
percent_10_to_15: Option<i32>,
less_than_100_percent: Option<i32>,
}
impl HousingUnitWithoutAMortgageExcludingUnitsWhereSmocapiCannotBeComputed {
pub fn new<F>(read_field: F) -> Self
where
F: Fn(&str) -> Option<i32> + Clone,
{
Self { value : read_field ("Estimate!!SELECTED MONTHLY OWNER COSTS AS A PERCENTAGE OF HOUSEHOLD INCOME (SMOCAPI)!!Housing unit without a mortgage (excluding units where SMOCAPI cannot be computed)") , not_computed : read_field ("Estimate!!SELECTED MONTHLY OWNER COSTS AS A PERCENTAGE OF HOUSEHOLD INCOME (SMOCAPI)!!Housing unit without a mortgage (excluding units where SMOCAPI cannot be computed)!!Not computed") , percent_35_or_more : read_field ("Estimate!!SELECTED MONTHLY OWNER COSTS AS A PERCENTAGE OF HOUSEHOLD INCOME (SMOCAPI)!!Housing unit without a mortgage (excluding units where SMOCAPI cannot be computed)!!35.0 percent or more") , percent_30_to_35 : read_field ("Estimate!!SELECTED MONTHLY OWNER COSTS AS A PERCENTAGE OF HOUSEHOLD INCOME (SMOCAPI)!!Housing unit without a mortgage (excluding units where SMOCAPI cannot be computed)!!30.0 to 34.9 percent") , percent_25_to_30 : read_field ("Estimate!!SELECTED MONTHLY OWNER COSTS AS A PERCENTAGE OF HOUSEHOLD INCOME (SMOCAPI)!!Housing unit without a mortgage (excluding units where SMOCAPI cannot be computed)!!25.0 to 29.9 percent") , percent_20_to_25 : read_field ("Estimate!!SELECTED MONTHLY OWNER COSTS AS A PERCENTAGE OF HOUSEHOLD INCOME (SMOCAPI)!!Housing unit without a mortgage (excluding units where SMOCAPI cannot be computed)!!20.0 to 24.9 percent") , percent_15_to_19 : read_field ("Estimate!!SELECTED MONTHLY OWNER COSTS AS A PERCENTAGE OF HOUSEHOLD INCOME (SMOCAPI)!!Housing unit without a mortgage (excluding units where SMOCAPI cannot be computed)!!15.0 to 19.9 percent") , percent_10_to_15 : read_field ("Estimate!!SELECTED MONTHLY OWNER COSTS AS A PERCENTAGE OF HOUSEHOLD INCOME (SMOCAPI)!!Housing unit without a mortgage (excluding units where SMOCAPI cannot be computed)!!10.0 to 14.9 percent") , less_than_100_percent : read_field ("Estimate!!SELECTED MONTHLY OWNER COSTS AS A PERCENTAGE OF HOUSEHOLD INCOME (SMOCAPI)!!Housing unit without a mortgage (excluding units where SMOCAPI cannot be computed)!!Less than 10.0 percent") , }
}
}
#[derive(GraphQLObject, Copy, Clone, Debug)]
struct GrossRent {
occupied_units_paying_rent: OccupiedUnitsPayingRent,
}
impl GrossRent {
pub fn new<F>(read_field: F) -> Self
where
F: Fn(&str) -> Option<i32> + Clone,
{
Self {
occupied_units_paying_rent: OccupiedUnitsPayingRent::new(read_field.clone()),
}
}
}
#[derive(GraphQLObject, Copy, Clone, Debug)]
struct OccupiedUnitsPayingRent {
value: Option<i32>,
no_rent_paid: Option<i32>,
median_dollars: Option<i32>,
usd_3000_or_more: Option<i32>,
usd_2500_to_usd_2999: Option<i32>,
usd_2000_to_usd_2499: Option<i32>,
usd_1500_to_usd_1999: Option<i32>,
usd_1000_to_usd_1499: Option<i32>,
usd_500_to_usd_999: Option<i32>,
less_than_usd_500: Option<i32>,
}
impl OccupiedUnitsPayingRent {
pub fn new<F>(read_field: F) -> Self
where
F: Fn(&str) -> Option<i32> + Clone,
{
Self {
value: read_field("Estimate!!GROSS RENT!!Occupied units paying rent"),
no_rent_paid: read_field(
"Estimate!!GROSS RENT!!Occupied units paying rent!!No rent paid",
),
median_dollars: read_field(
"Estimate!!GROSS RENT!!Occupied units paying rent!!Median (dollars)",
),
usd_3000_or_more: read_field(
"Estimate!!GROSS RENT!!Occupied units paying rent!!$3,000 or more",
),
usd_2500_to_usd_2999: read_field(
"Estimate!!GROSS RENT!!Occupied units paying rent!!$2,500 to $2,999",
),
usd_2000_to_usd_2499: read_field(
"Estimate!!GROSS RENT!!Occupied units paying rent!!$2,000 to $2,499",
),
usd_1500_to_usd_1999: read_field(
"Estimate!!GROSS RENT!!Occupied units paying rent!!$1,500 to $1,999",
),
usd_1000_to_usd_1499: read_field(
"Estimate!!GROSS RENT!!Occupied units paying rent!!$1,000 to $1,499",
),
usd_500_to_usd_999: read_field(
"Estimate!!GROSS RENT!!Occupied units paying rent!!$500 to $999",
),
less_than_usd_500: read_field(
"Estimate!!GROSS RENT!!Occupied units paying rent!!Less than $500",
),
}
}
}
#[derive(GraphQLObject, Copy, Clone, Debug)]
struct GrossRentAsAPercentageOfHouseholdIncomeGrapi {
occupied_units_paying_rent_excluding_units_where_grapi_cannot_be_computed:
OccupiedUnitsPayingRentExcludingUnitsWhereGrapiCannotBeComputed,
}
impl GrossRentAsAPercentageOfHouseholdIncomeGrapi {
pub fn new<F>(read_field: F) -> Self
where
F: Fn(&str) -> Option<i32> + Clone,
{
Self {
occupied_units_paying_rent_excluding_units_where_grapi_cannot_be_computed:
OccupiedUnitsPayingRentExcludingUnitsWhereGrapiCannotBeComputed::new(
read_field.clone(),
),
}
}
}
#[derive(GraphQLObject, Copy, Clone, Debug)]
struct OccupiedUnitsPayingRentExcludingUnitsWhereGrapiCannotBeComputed {
value: Option<i32>,
not_computed: Option<i32>,
percent_35_or_more: Option<i32>,
percent_30_to_35: Option<i32>,
percent_25_to_30: Option<i32>,
percent_20_to_25: Option<i32>,
percent_15_to_19: Option<i32>,
less_than_15_percent: Option<i32>,
}
impl OccupiedUnitsPayingRentExcludingUnitsWhereGrapiCannotBeComputed {
pub fn new<F>(read_field: F) -> Self
where
F: Fn(&str) -> Option<i32> + Clone,
{
Self { value : read_field ("Estimate!!GROSS RENT AS A PERCENTAGE OF HOUSEHOLD INCOME (GRAPI)!!Occupied units paying rent (excluding units where GRAPI cannot be computed)") , not_computed : read_field ("Estimate!!GROSS RENT AS A PERCENTAGE OF HOUSEHOLD INCOME (GRAPI)!!Occupied units paying rent (excluding units where GRAPI cannot be computed)!!Not computed") , percent_35_or_more : read_field ("Estimate!!GROSS RENT AS A PERCENTAGE OF HOUSEHOLD INCOME (GRAPI)!!Occupied units paying rent (excluding units where GRAPI cannot be computed)!!35.0 percent or more") , percent_30_to_35 : read_field ("Estimate!!GROSS RENT AS A PERCENTAGE OF HOUSEHOLD INCOME (GRAPI)!!Occupied units paying rent (excluding units where GRAPI cannot be computed)!!30.0 to 34.9 percent") , percent_25_to_30 : read_field ("Estimate!!GROSS RENT AS A PERCENTAGE OF HOUSEHOLD INCOME (GRAPI)!!Occupied units paying rent (excluding units where GRAPI cannot be computed)!!25.0 to 29.9 percent") , percent_20_to_25 : read_field ("Estimate!!GROSS RENT AS A PERCENTAGE OF HOUSEHOLD INCOME (GRAPI)!!Occupied units paying rent (excluding units where GRAPI cannot be computed)!!20.0 to 24.9 percent") , percent_15_to_19 : read_field ("Estimate!!GROSS RENT AS A PERCENTAGE OF HOUSEHOLD INCOME (GRAPI)!!Occupied units paying rent (excluding units where GRAPI cannot be computed)!!15.0 to 19.9 percent") , less_than_15_percent : read_field ("Estimate!!GROSS RENT AS A PERCENTAGE OF HOUSEHOLD INCOME (GRAPI)!!Occupied units paying rent (excluding units where GRAPI cannot be computed)!!Less than 15.0 percent") , }
}
}
#[derive(GraphQLObject, Copy, Clone, Debug)]
struct Dp05 {
citizen_voting_age_population: CitizenVotingAgePopulation,
hispanic_or_latino_and_race: HispanicOrLatinoAndRace,
race_alone_or_in_combination_with_one_or_more_other_races:
RaceAloneOrInCombinationWithOneOrMoreOtherRaces,
race: Race,
sex_and_age: SexAndAge,
}
impl Dp05 {
pub fn new<F>(read_field: F) -> Self
where
F: Fn(&str) -> Option<i32> + Clone,
{
Self {
citizen_voting_age_population: CitizenVotingAgePopulation::new(read_field.clone()),
hispanic_or_latino_and_race: HispanicOrLatinoAndRace::new(read_field.clone()),
race_alone_or_in_combination_with_one_or_more_other_races:
RaceAloneOrInCombinationWithOneOrMoreOtherRaces::new(read_field.clone()),
race: Race::new(read_field.clone()),
sex_and_age: SexAndAge::new(read_field.clone()),
}
}
}
#[derive(GraphQLObject, Copy, Clone, Debug)]
struct SexAndAge {
total_population: TotalPopulation2,
}
impl SexAndAge {
pub fn new<F>(read_field: F) -> Self
where
F: Fn(&str) -> Option<i32> + Clone,
{
Self {
total_population: TotalPopulation2::new(read_field.clone()),
}
}
}
#[derive(GraphQLObject, Copy, Clone, Debug)]
struct TotalPopulation2 {
value: Option<i32>,
age_65_and_over: Age65AndOver1,
age_62_and_over: Option<i32>,
age_21_and_over: Option<i32>,
age_18_and_over: Age18AndOver1,
age_16_and_over: Option<i32>,
under_18_years: Option<i32>,
median_age_years: Option<i32>,
age_85_and_over: Option<i32>,
age_75_to_84: Option<i32>,
age_65_to_74: Option<i32>,
age_60_to_64: Option<i32>,
age_55_to_59: Option<i32>,
age_45_to_54: Option<i32>,
age_35_to_44: Option<i32>,
age_25_to_34: Option<i32>,
age_20_to_24: Option<i32>,
age_15_to_19: Option<i32>,
age_10_to_14: Option<i32>,
age_5_to_9: Option<i32>,
under_5_years: Option<i32>,
sex_ratio_males_per_100_females: Option<i32>,
female: Option<i32>,
male: Option<i32>,
}
impl TotalPopulation2 {
pub fn new<F>(read_field: F) -> Self
where
F: Fn(&str) -> Option<i32> + Clone,
{
Self {
value: read_field("Estimate!!SEX AND AGE!!Total population"),
age_65_and_over: Age65AndOver1::new(read_field.clone()),
age_62_and_over: read_field(
"Estimate!!SEX AND AGE!!Total population!!62 years and over",
),
age_21_and_over: read_field(
"Estimate!!SEX AND AGE!!Total population!!21 years and over",
),
age_18_and_over: Age18AndOver1::new(read_field.clone()),
age_16_and_over: read_field(
"Estimate!!SEX AND AGE!!Total population!!16 years and over",
),
under_18_years: read_field("Estimate!!SEX AND AGE!!Total population!!Under 18 years"),
median_age_years: read_field(
"Estimate!!SEX AND AGE!!Total population!!Median age (years)",
),
age_85_and_over: read_field(
"Estimate!!SEX AND AGE!!Total population!!85 years and over",
),
age_75_to_84: read_field("Estimate!!SEX AND AGE!!Total population!!75 to 84 years"),
age_65_to_74: read_field("Estimate!!SEX AND AGE!!Total population!!65 to 74 years"),
age_60_to_64: read_field("Estimate!!SEX AND AGE!!Total population!!60 to 64 years"),
age_55_to_59: read_field("Estimate!!SEX AND AGE!!Total population!!55 to 59 years"),
age_45_to_54: read_field("Estimate!!SEX AND AGE!!Total population!!45 to 54 years"),
age_35_to_44: read_field("Estimate!!SEX AND AGE!!Total population!!35 to 44 years"),
age_25_to_34: read_field("Estimate!!SEX AND AGE!!Total population!!25 to 34 years"),
age_20_to_24: read_field("Estimate!!SEX AND AGE!!Total population!!20 to 24 years"),
age_15_to_19: read_field("Estimate!!SEX AND AGE!!Total population!!15 to 19 years"),
age_10_to_14: read_field("Estimate!!SEX AND AGE!!Total population!!10 to 14 years"),
age_5_to_9: read_field("Estimate!!SEX AND AGE!!Total population!!5 to 9 years"),
under_5_years: read_field("Estimate!!SEX AND AGE!!Total population!!Under 5 years"),
sex_ratio_males_per_100_females: read_field(
"Estimate!!SEX AND AGE!!Total population!!Sex ratio (males per 100 females)",
),
female: read_field("Estimate!!SEX AND AGE!!Total population!!Female"),
male: read_field("Estimate!!SEX AND AGE!!Total population!!Male"),
}
}
}
#[derive(GraphQLObject, Copy, Clone, Debug)]
struct Age18AndOver1 {
value: Option<i32>,
sex_ratio_males_per_100_females: Option<i32>,
female: Option<i32>,
male: Option<i32>,
}
impl Age18AndOver1 {
pub fn new<F>(read_field: F) -> Self
where
F: Fn(&str) -> Option<i32> + Clone,
{
Self { value : read_field ("Estimate!!SEX AND AGE!!Total population!!18 years and over") , sex_ratio_males_per_100_females : read_field ("Estimate!!SEX AND AGE!!Total population!!18 years and over!!Sex ratio (males per 100 females)") , female : read_field ("Estimate!!SEX AND AGE!!Total population!!18 years and over!!Female") , male : read_field ("Estimate!!SEX AND AGE!!Total population!!18 years and over!!Male") , }
}
}
#[derive(GraphQLObject, Copy, Clone, Debug)]
struct Age65AndOver1 {
value: Option<i32>,
sex_ratio_males_per_100_females: Option<i32>,
female: Option<i32>,
male: Option<i32>,
}
impl Age65AndOver1 {
pub fn new<F>(read_field: F) -> Self
where
F: Fn(&str) -> Option<i32> + Clone,
{
Self { value : read_field ("Estimate!!SEX AND AGE!!Total population!!65 years and over") , sex_ratio_males_per_100_females : read_field ("Estimate!!SEX AND AGE!!Total population!!65 years and over!!Sex ratio (males per 100 females)") , female : read_field ("Estimate!!SEX AND AGE!!Total population!!65 years and over!!Female") , male : read_field ("Estimate!!SEX AND AGE!!Total population!!65 years and over!!Male") , }
}
}
#[derive(GraphQLObject, Copy, Clone, Debug)]
struct Race {
total_population: TotalPopulation3,
}
impl Race {
pub fn new<F>(read_field: F) -> Self
where
F: Fn(&str) -> Option<i32> + Clone,
{
Self {
total_population: TotalPopulation3::new(read_field.clone()),
}
}
}
#[derive(GraphQLObject, Copy, Clone, Debug)]
struct TotalPopulation3 {
value: Option<i32>,
two_or_more_races: TwoOrMoreRaces,
one_race: OneRace,
}
impl TotalPopulation3 {
pub fn new<F>(read_field: F) -> Self
where
F: Fn(&str) -> Option<i32> + Clone,
{
Self {
value: read_field("Estimate!!RACE!!Total population"),
two_or_more_races: TwoOrMoreRaces::new(read_field.clone()),
one_race: OneRace::new(read_field.clone()),
}
}
}
#[derive(GraphQLObject, Copy, Clone, Debug)]
struct OneRace {
value: Option<i32>,
some_other_race: Option<i32>,
native_hawaiian_and_other_pacific_islander: NativeHawaiianAndOtherPacificIslander,
asian: Asian,
american_indian_and_alaska_native: AmericanIndianAndAlaskaNative,
black_or_african_american: Option<i32>,
white: Option<i32>,
}
impl OneRace {
pub fn new<F>(read_field: F) -> Self
where
F: Fn(&str) -> Option<i32> + Clone,
{
Self {
value: read_field("Estimate!!RACE!!Total population!!One race"),
some_other_race: read_field(
"Estimate!!RACE!!Total population!!One race!!Some other race",
),
native_hawaiian_and_other_pacific_islander: NativeHawaiianAndOtherPacificIslander::new(
read_field.clone(),
),
asian: Asian::new(read_field.clone()),
american_indian_and_alaska_native: AmericanIndianAndAlaskaNative::new(
read_field.clone(),
),
black_or_african_american: read_field(
"Estimate!!RACE!!Total population!!One race!!Black or African American",
),
white: read_field("Estimate!!RACE!!Total population!!One race!!White"),
}
}
}
#[derive(GraphQLObject, Copy, Clone, Debug)]
struct AmericanIndianAndAlaskaNative {
value: Option<i32>,
sioux_tribal_grouping: Option<i32>,
navajo_tribal_grouping: Option<i32>,
chippewa_tribal_grouping: Option<i32>,
cherokee_tribal_grouping: Option<i32>,
}
impl AmericanIndianAndAlaskaNative {
pub fn new<F>(read_field: F) -> Self
where
F: Fn(&str) -> Option<i32> + Clone,
{
Self { value : read_field ("Estimate!!RACE!!Total population!!One race!!American Indian and Alaska Native") , sioux_tribal_grouping : read_field ("Estimate!!RACE!!Total population!!One race!!American Indian and Alaska Native!!Sioux tribal grouping") , navajo_tribal_grouping : read_field ("Estimate!!RACE!!Total population!!One race!!American Indian and Alaska Native!!Navajo tribal grouping") , chippewa_tribal_grouping : read_field ("Estimate!!RACE!!Total population!!One race!!American Indian and Alaska Native!!Chippewa tribal grouping") , cherokee_tribal_grouping : read_field ("Estimate!!RACE!!Total population!!One race!!American Indian and Alaska Native!!Cherokee tribal grouping") , }
}
}
#[derive(GraphQLObject, Copy, Clone, Debug)]
struct Asian {
value: Option<i32>,
other_asian: Option<i32>,
vietnamese: Option<i32>,
korean: Option<i32>,
japanese: Option<i32>,
filipino: Option<i32>,
chinese: Option<i32>,
asian_indian: Option<i32>,
}
impl Asian {
pub fn new<F>(read_field: F) -> Self
where
F: Fn(&str) -> Option<i32> + Clone,
{
Self {
value: read_field("Estimate!!RACE!!Total population!!One race!!Asian"),
other_asian: read_field(
"Estimate!!RACE!!Total population!!One race!!Asian!!Other Asian",
),
vietnamese: read_field("Estimate!!RACE!!Total population!!One race!!Asian!!Vietnamese"),
korean: read_field("Estimate!!RACE!!Total population!!One race!!Asian!!Korean"),
japanese: read_field("Estimate!!RACE!!Total population!!One race!!Asian!!Japanese"),
filipino: read_field("Estimate!!RACE!!Total population!!One race!!Asian!!Filipino"),
chinese: read_field("Estimate!!RACE!!Total population!!One race!!Asian!!Chinese"),
asian_indian: read_field(
"Estimate!!RACE!!Total population!!One race!!Asian!!Asian Indian",
),
}
}
}
#[derive(GraphQLObject, Copy, Clone, Debug)]
struct NativeHawaiianAndOtherPacificIslander {
value: Option<i32>,
other_pacific_islander: Option<i32>,
samoan: Option<i32>,
guamanian_or_chamorro: Option<i32>,
native_hawaiian: Option<i32>,
}
impl NativeHawaiianAndOtherPacificIslander {
pub fn new<F>(read_field: F) -> Self
where
F: Fn(&str) -> Option<i32> + Clone,
{
Self { value : read_field ("Estimate!!RACE!!Total population!!One race!!Native Hawaiian and Other Pacific Islander") , other_pacific_islander : read_field ("Estimate!!RACE!!Total population!!One race!!Native Hawaiian and Other Pacific Islander!!Other Pacific Islander") , samoan : read_field ("Estimate!!RACE!!Total population!!One race!!Native Hawaiian and Other Pacific Islander!!Samoan") , guamanian_or_chamorro : read_field ("Estimate!!RACE!!Total population!!One race!!Native Hawaiian and Other Pacific Islander!!Guamanian or Chamorro") , native_hawaiian : read_field ("Estimate!!RACE!!Total population!!One race!!Native Hawaiian and Other Pacific Islander!!Native Hawaiian") , }
}
}
#[derive(GraphQLObject, Copy, Clone, Debug)]
struct TwoOrMoreRaces {
value: Option<i32>,
black_or_african_american_and_american_indian_and_alaska_native: Option<i32>,
white_and_asian: Option<i32>,
white_and_american_indian_and_alaska_native: Option<i32>,
white_and_black_or_african_american: Option<i32>,
}
impl TwoOrMoreRaces {
pub fn new<F>(read_field: F) -> Self
where
F: Fn(&str) -> Option<i32> + Clone,
{
Self { value : read_field ("Estimate!!RACE!!Total population!!Two or more races") , black_or_african_american_and_american_indian_and_alaska_native : read_field ("Estimate!!RACE!!Total population!!Two or more races!!Black or African American and American Indian and Alaska Native") , white_and_asian : read_field ("Estimate!!RACE!!Total population!!Two or more races!!White and Asian") , white_and_american_indian_and_alaska_native : read_field ("Estimate!!RACE!!Total population!!Two or more races!!White and American Indian and Alaska Native") , white_and_black_or_african_american : read_field ("Estimate!!RACE!!Total population!!Two or more races!!White and Black or African American") , }
}
}
#[derive(GraphQLObject, Copy, Clone, Debug)]
struct RaceAloneOrInCombinationWithOneOrMoreOtherRaces {
total_population: TotalPopulation4,
}
impl RaceAloneOrInCombinationWithOneOrMoreOtherRaces {
pub fn new<F>(read_field: F) -> Self
where
F: Fn(&str) -> Option<i32> + Clone,
{
Self {
total_population: TotalPopulation4::new(read_field.clone()),
}
}
}
#[derive(GraphQLObject, Copy, Clone, Debug)]
struct TotalPopulation4 {
value: Option<i32>,
some_other_race: Option<i32>,
native_hawaiian_and_other_pacific_islander: Option<i32>,
asian: Option<i32>,
american_indian_and_alaska_native: Option<i32>,
black_or_african_american: Option<i32>,
white: Option<i32>,
}
impl TotalPopulation4 {
pub fn new<F>(read_field: F) -> Self
where
F: Fn(&str) -> Option<i32> + Clone,
{
Self { value : read_field ("Estimate!!Race alone or in combination with one or more other races!!Total population") , some_other_race : read_field ("Estimate!!Race alone or in combination with one or more other races!!Total population!!Some other race") , native_hawaiian_and_other_pacific_islander : read_field ("Estimate!!Race alone or in combination with one or more other races!!Total population!!Native Hawaiian and Other Pacific Islander") , asian : read_field ("Estimate!!Race alone or in combination with one or more other races!!Total population!!Asian") , american_indian_and_alaska_native : read_field ("Estimate!!Race alone or in combination with one or more other races!!Total population!!American Indian and Alaska Native") , black_or_african_american : read_field ("Estimate!!Race alone or in combination with one or more other races!!Total population!!Black or African American") , white : read_field ("Estimate!!Race alone or in combination with one or more other races!!Total population!!White") , }
}
}
#[derive(GraphQLObject, Copy, Clone, Debug)]
struct HispanicOrLatinoAndRace {
total_population: TotalPopulation5,
}
impl HispanicOrLatinoAndRace {
pub fn new<F>(read_field: F) -> Self
where
F: Fn(&str) -> Option<i32> + Clone,
{
Self {
total_population: TotalPopulation5::new(read_field.clone()),
}
}
}
#[derive(GraphQLObject, Copy, Clone, Debug)]
struct TotalPopulation5 {
value: Option<i32>,
not_hispanic_or_latino: NotHispanicOrLatino,
hispanic_or_latino_of_any_race: HispanicOrLatinoOfAnyRace,
}
impl TotalPopulation5 {
pub fn new<F>(read_field: F) -> Self
where
F: Fn(&str) -> Option<i32> + Clone,
{
Self {
value: read_field("Estimate!!HISPANIC OR LATINO AND RACE!!Total population"),
not_hispanic_or_latino: NotHispanicOrLatino::new(read_field.clone()),
hispanic_or_latino_of_any_race: HispanicOrLatinoOfAnyRace::new(read_field.clone()),
}
}
}
#[derive(GraphQLObject, Copy, Clone, Debug)]
struct HispanicOrLatinoOfAnyRace {
value: Option<i32>,
other_hispanic_or_latino: Option<i32>,
cuban: Option<i32>,
puerto_rican: Option<i32>,
mexican: Option<i32>,
}
impl HispanicOrLatinoOfAnyRace {
pub fn new<F>(read_field: F) -> Self
where
F: Fn(&str) -> Option<i32> + Clone,
{
Self { value : read_field ("Estimate!!HISPANIC OR LATINO AND RACE!!Total population!!Hispanic or Latino (of any race)") , other_hispanic_or_latino : read_field ("Estimate!!HISPANIC OR LATINO AND RACE!!Total population!!Hispanic or Latino (of any race)!!Other Hispanic or Latino") , cuban : read_field ("Estimate!!HISPANIC OR LATINO AND RACE!!Total population!!Hispanic or Latino (of any race)!!Cuban") , puerto_rican : read_field ("Estimate!!HISPANIC OR LATINO AND RACE!!Total population!!Hispanic or Latino (of any race)!!Puerto Rican") , mexican : read_field ("Estimate!!HISPANIC OR LATINO AND RACE!!Total population!!Hispanic or Latino (of any race)!!Mexican") , }
}
}
#[derive(GraphQLObject, Copy, Clone, Debug)]
struct NotHispanicOrLatino {
value: Option<i32>,
two_or_more_races: TwoOrMoreRaces1,
some_other_race_alone: Option<i32>,
native_hawaiian_and_other_pacific_islander_alone: Option<i32>,
asian_alone: Option<i32>,
american_indian_and_alaska_native_alone: Option<i32>,
black_or_african_american_alone: Option<i32>,
white_alone: Option<i32>,
}
impl NotHispanicOrLatino {
pub fn new<F>(read_field: F) -> Self
where
F: Fn(&str) -> Option<i32> + Clone,
{
Self { value : read_field ("Estimate!!HISPANIC OR LATINO AND RACE!!Total population!!Not Hispanic or Latino") , two_or_more_races : TwoOrMoreRaces1 :: new (read_field . clone ()) , some_other_race_alone : read_field ("Estimate!!HISPANIC OR LATINO AND RACE!!Total population!!Not Hispanic or Latino!!Some other race alone") , native_hawaiian_and_other_pacific_islander_alone : read_field ("Estimate!!HISPANIC OR LATINO AND RACE!!Total population!!Not Hispanic or Latino!!Native Hawaiian and Other Pacific Islander alone") , asian_alone : read_field ("Estimate!!HISPANIC OR LATINO AND RACE!!Total population!!Not Hispanic or Latino!!Asian alone") , american_indian_and_alaska_native_alone : read_field ("Estimate!!HISPANIC OR LATINO AND RACE!!Total population!!Not Hispanic or Latino!!American Indian and Alaska Native alone") , black_or_african_american_alone : read_field ("Estimate!!HISPANIC OR LATINO AND RACE!!Total population!!Not Hispanic or Latino!!Black or African American alone") , white_alone : read_field ("Estimate!!HISPANIC OR LATINO AND RACE!!Total population!!Not Hispanic or Latino!!White alone") , }
}
}
#[derive(GraphQLObject, Copy, Clone, Debug)]
struct TwoOrMoreRaces1 {
value: Option<i32>,
two_races_excluding_some_other_race_and_three_or_more_races: Option<i32>,
two_races_including_some_other_race: Option<i32>,
}
impl TwoOrMoreRaces1 {
pub fn new<F>(read_field: F) -> Self
where
F: Fn(&str) -> Option<i32> + Clone,
{
Self { value : read_field ("Estimate!!HISPANIC OR LATINO AND RACE!!Total population!!Not Hispanic or Latino!!Two or more races") , two_races_excluding_some_other_race_and_three_or_more_races : read_field ("Estimate!!HISPANIC OR LATINO AND RACE!!Total population!!Not Hispanic or Latino!!Two or more races!!Two races excluding Some other race, and Three or more races") , two_races_including_some_other_race : read_field ("Estimate!!HISPANIC OR LATINO AND RACE!!Total population!!Not Hispanic or Latino!!Two or more races!!Two races including Some other race") , }
}
}
#[derive(GraphQLObject, Copy, Clone, Debug)]
struct CitizenVotingAgePopulation {
citizen_18_and_over_population: Citizen18AndOverPopulation,
}
impl CitizenVotingAgePopulation {
pub fn new<F>(read_field: F) -> Self
where
F: Fn(&str) -> Option<i32> + Clone,
{
Self {
citizen_18_and_over_population: Citizen18AndOverPopulation::new(read_field.clone()),
}
}
}
#[derive(GraphQLObject, Copy, Clone, Debug)]
struct Citizen18AndOverPopulation {
value: Option<i32>,
female: Option<i32>,
male: Option<i32>,
}
impl Citizen18AndOverPopulation {
pub fn new<F>(read_field: F) -> Self
where
F: Fn(&str) -> Option<i32> + Clone,
{
Self {
value: read_field(
"Estimate!!CITIZEN, VOTING AGE POPULATION!!Citizen, 18 and over population",
),
female: read_field(
"Estimate!!CITIZEN, VOTING AGE POPULATION!!Citizen, 18 and over population!!Female",
),
male: read_field(
"Estimate!!CITIZEN, VOTING AGE POPULATION!!Citizen, 18 and over population!!Male",
),
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment