Skip to main content

finance_query/constants/
industries.rs

1/// Typed industry identifier for the industry endpoint and custom screener queries.
2///
3/// See the module-level doc for usage.
4#[non_exhaustive]
5#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash, serde::Serialize, serde::Deserialize)]
6pub enum Industry {
7    // ── Agriculture / Raw Materials ──────────────────────────────────────
8    /// Agricultural inputs, fertilizers, and crop chemicals
9    #[serde(rename = "agricultural-inputs")]
10    AgriculturalInputs,
11    /// Aluminum production and processing companies
12    #[serde(rename = "aluminum")]
13    Aluminum,
14    /// Coal mining and processing companies
15    #[serde(rename = "coal")]
16    Coal,
17    /// Copper mining and processing companies
18    #[serde(rename = "copper")]
19    Copper,
20    /// Farm products including grains, livestock, and produce
21    #[serde(rename = "farm-products")]
22    FarmProducts,
23    /// Forest products including timber and paper pulp
24    #[serde(rename = "forest-products")]
25    ForestProducts,
26    /// Gold mining and royalty companies
27    #[serde(rename = "gold")]
28    Gold,
29    /// Lumber and wood production companies
30    #[serde(rename = "lumber-wood-production")]
31    LumberAndWoodProduction,
32    /// Other industrial metals and mining (zinc, nickel, etc.)
33    #[serde(rename = "other-industrial-metals-mining")]
34    OtherIndustrialMetalsAndMining,
35    /// Other precious metals and mining (platinum, palladium, etc.)
36    #[serde(rename = "other-precious-metals-mining")]
37    OtherPreciousMetalsAndMining,
38    /// Silver mining and streaming companies
39    #[serde(rename = "silver")]
40    Silver,
41    /// Steel production and processing companies
42    #[serde(rename = "steel")]
43    Steel,
44    /// Thermal coal mining for electricity generation
45    #[serde(rename = "thermal-coal")]
46    ThermalCoal,
47    /// Uranium mining companies
48    #[serde(rename = "uranium")]
49    Uranium,
50    // ── Consumer ─────────────────────────────────────────────────────────
51    /// Clothing and apparel manufacturing companies
52    #[serde(rename = "apparel-manufacturing")]
53    ApparelManufacturing,
54    /// Clothing and apparel retail chains
55    #[serde(rename = "apparel-retail")]
56    ApparelRetail,
57    /// Automotive and truck dealerships
58    #[serde(rename = "auto-truck-dealerships")]
59    AutoAndTruckDealerships,
60    /// Automobile manufacturers and assemblers
61    #[serde(rename = "auto-manufacturers")]
62    AutoManufacturers,
63    /// Automotive parts manufacturers and distributors
64    #[serde(rename = "auto-parts")]
65    AutoParts,
66    /// Beer brewing and distribution companies
67    #[serde(rename = "beverages-brewers")]
68    BeveragesBrewers,
69    /// Non-alcoholic beverages including soft drinks and juices
70    #[serde(rename = "beverages-non-alcoholic")]
71    BeveragesNonAlcoholic,
72    /// Wineries, distilleries, and spirits producers
73    #[serde(rename = "beverages-wineries-distilleries")]
74    BeveragesWineriesAndDistilleries,
75    /// Candy, chocolate, and confectionery makers
76    #[serde(rename = "confectioners")]
77    Confectioners,
78    /// Traditional department store retailers
79    #[serde(rename = "department-stores")]
80    DepartmentStores,
81    /// Discount and value retail stores
82    #[serde(rename = "discount-stores")]
83    DiscountStores,
84    /// Electronic gaming software and multimedia entertainment
85    #[serde(rename = "electronic-gaming-multimedia")]
86    ElectronicGamingAndMultimedia,
87    /// Wholesale food distribution companies
88    #[serde(rename = "food-distribution")]
89    FoodDistribution,
90    /// Footwear, handbags, and fashion accessories
91    #[serde(rename = "footwear-accessories")]
92    FootwearAndAccessories,
93    /// Furniture, fixtures, and household appliances
94    #[serde(rename = "furnishings-fixtures-appliances")]
95    FurnishingsFixturesAndAppliances,
96    /// Casinos, online gambling, and gaming operators
97    #[serde(rename = "gambling")]
98    Gambling,
99    /// Supermarkets and grocery retail chains
100    #[serde(rename = "grocery-stores")]
101    GroceryStores,
102    /// Home improvement retail stores
103    #[serde(rename = "home-improvement-retail")]
104    HomeImprovementRetail,
105    /// Household cleaning products and personal care items
106    #[serde(rename = "household-personal-products")]
107    HouseholdAndPersonalProducts,
108    /// Online retail and e-commerce marketplaces
109    #[serde(rename = "internet-retail")]
110    InternetRetail,
111    /// Leisure, recreation, and entertainment companies
112    #[serde(rename = "leisure")]
113    Leisure,
114    /// Hotels and lodging companies
115    #[serde(rename = "lodging")]
116    Lodging,
117    /// Luxury goods, fashion, and premium consumer brands
118    #[serde(rename = "luxury-goods")]
119    LuxuryGoods,
120    /// Packaged and processed food manufacturers
121    #[serde(rename = "packaged-foods")]
122    PackagedFoods,
123    /// Personal care, laundry, and household services
124    #[serde(rename = "personal-services")]
125    PersonalServices,
126    /// Home builders and residential construction
127    #[serde(rename = "residential-construction")]
128    ResidentialConstruction,
129    /// Resorts, integrated casinos, and hotel-casinos
130    #[serde(rename = "resorts-casinos")]
131    ResortsAndCasinos,
132    /// Restaurant chains and food service operators
133    #[serde(rename = "restaurants")]
134    Restaurants,
135    /// Specialty retail stores (pets, books, electronics, etc.)
136    #[serde(rename = "specialty-retail")]
137    SpecialtyRetail,
138    /// Textile and fabric manufacturers
139    #[serde(rename = "textile-manufacturing")]
140    TextileManufacturing,
141    /// Tobacco product manufacturers
142    #[serde(rename = "tobacco")]
143    Tobacco,
144    /// Travel agencies, booking platforms, and tour operators
145    #[serde(rename = "travel-services")]
146    TravelServices,
147    // ── Energy ───────────────────────────────────────────────────────────
148    /// Oil and gas contract drilling services
149    #[serde(rename = "oil-gas-drilling")]
150    OilAndGasDrilling,
151    /// Oil and gas exploration and production companies
152    #[serde(rename = "oil-gas-ep")]
153    OilAndGasEAndP,
154    /// Oil field equipment, services, and engineering
155    #[serde(rename = "oil-gas-equipment-services")]
156    OilAndGasEquipmentAndServices,
157    /// Vertically integrated oil and gas majors
158    #[serde(rename = "oil-gas-integrated")]
159    OilAndGasIntegrated,
160    /// Oil and gas pipelines, storage, and transportation
161    #[serde(rename = "oil-gas-midstream")]
162    OilAndGasMidstream,
163    /// Oil refining, wholesale fuel, and marketing
164    #[serde(rename = "oil-gas-refining-marketing")]
165    OilAndGasRefiningAndMarketing,
166    /// Solar panel manufacturers and solar energy producers
167    #[serde(rename = "solar")]
168    Solar,
169    // ── Financial Services ───────────────────────────────────────────────
170    /// Asset managers, fund sponsors, and investment advisors
171    #[serde(rename = "asset-management")]
172    AssetManagement,
173    /// Large diversified national and international banks
174    #[serde(rename = "banks-diversified")]
175    BanksDiversified,
176    /// Regional and community banks
177    #[serde(rename = "banks-regional")]
178    BanksRegional,
179    /// Investment banks, brokers, and financial exchanges
180    #[serde(rename = "capital-markets")]
181    CapitalMarkets,
182    /// Credit card issuers and consumer credit services
183    #[serde(rename = "credit-services")]
184    CreditServices,
185    /// Financial data, analytics, and stock exchange operators
186    #[serde(rename = "financial-data-stock-exchanges")]
187    FinancialDataAndStockExchanges,
188    /// Insurance brokers and agencies
189    #[serde(rename = "insurance-brokers")]
190    InsuranceBrokers,
191    /// Diversified multi-line insurance companies
192    #[serde(rename = "insurance-diversified")]
193    InsuranceDiversified,
194    /// Life insurance and annuity providers
195    #[serde(rename = "insurance-life")]
196    InsuranceLife,
197    /// Property and casualty insurance companies
198    #[serde(rename = "insurance-property-casualty")]
199    InsurancePropertyAndCasualty,
200    /// Reinsurance companies
201    #[serde(rename = "insurance-reinsurance")]
202    InsuranceReinsurance,
203    /// Specialty insurance lines (title, mortgage, etc.)
204    #[serde(rename = "insurance-specialty")]
205    InsuranceSpecialty,
206    /// Mortgage banking and loan origination
207    #[serde(rename = "mortgage-finance")]
208    MortgageFinance,
209    /// Blank-check and shell holding companies
210    #[serde(rename = "shell-companies")]
211    ShellCompanies,
212    // ── Healthcare ───────────────────────────────────────────────────────
213    /// Biotechnology drug development companies
214    #[serde(rename = "biotechnology")]
215    Biotechnology,
216    /// Medical diagnostics labs and clinical research
217    #[serde(rename = "diagnostics-research")]
218    DiagnosticsAndResearch,
219    /// Large branded pharmaceutical manufacturers
220    #[serde(rename = "drug-manufacturers-general")]
221    DrugManufacturersGeneral,
222    /// Specialty drugs, generics, and biosimilars
223    #[serde(rename = "drug-manufacturers-specialty-generic")]
224    DrugManufacturersSpecialtyAndGeneric,
225    /// Healthcare IT, EHR, and health data services
226    #[serde(rename = "health-information-services")]
227    HealthInformationServices,
228    /// Managed care organizations and health insurers
229    #[serde(rename = "healthcare-plans")]
230    HealthcarePlans,
231    /// Hospitals, clinics, and outpatient care facilities
232    #[serde(rename = "medical-care-facilities")]
233    MedicalCareFacilities,
234    /// Medical device manufacturers (implants, diagnostics equipment)
235    #[serde(rename = "medical-devices")]
236    MedicalDevices,
237    /// Medical product wholesalers and distributors
238    #[serde(rename = "medical-distribution")]
239    MedicalDistribution,
240    /// Surgical instruments, disposables, and medical supplies
241    #[serde(rename = "medical-instruments-supplies")]
242    MedicalInstrumentsAndSupplies,
243    /// Retail pharmacies and drug store chains
244    #[serde(rename = "pharmaceutical-retailers")]
245    PharmaceuticalRetailers,
246    // ── Industrials ──────────────────────────────────────────────────────
247    /// Defense contractors, aircraft, and space systems
248    #[serde(rename = "aerospace-defense")]
249    AerospaceAndDefense,
250    /// Construction aggregates, cement, and building materials
251    #[serde(rename = "building-materials")]
252    BuildingMaterials,
253    /// HVAC, plumbing, windows, and building equipment
254    #[serde(rename = "building-products-equipment")]
255    BuildingProductsAndEquipment,
256    /// Office supplies, commercial equipment, and printers
257    #[serde(rename = "business-equipment-supplies")]
258    BusinessEquipmentAndSupplies,
259    /// Specialty chemical manufacturing for industrial use
260    #[serde(rename = "chemical-manufacturing")]
261    ChemicalManufacturing,
262    /// Diversified commodity chemicals producers
263    #[serde(rename = "chemicals")]
264    Chemicals,
265    /// Diversified industrial holding companies
266    #[serde(rename = "conglomerates")]
267    Conglomerates,
268    /// Management consulting and professional advisory services
269    #[serde(rename = "consulting-services")]
270    ConsultingServices,
271    /// Electrical components, motors, and power equipment
272    #[serde(rename = "electrical-equipment-parts")]
273    ElectricalEquipmentAndParts,
274    /// Civil engineering, construction, and infrastructure projects
275    #[serde(rename = "engineering-construction")]
276    EngineeringAndConstruction,
277    /// Agricultural equipment and heavy construction machinery
278    #[serde(rename = "farm-heavy-construction-machinery")]
279    FarmAndHeavyConstructionMachinery,
280    /// Industrial goods wholesalers and distributors
281    #[serde(rename = "industrial-distribution")]
282    IndustrialDistribution,
283    /// Toll roads, airports, and infrastructure operators
284    #[serde(rename = "infrastructure-operations")]
285    InfrastructureOperations,
286    /// Third-party logistics and supply chain management
287    #[serde(rename = "integrated-freight-logistics")]
288    IntegratedFreightAndLogistics,
289    /// Diversified manufacturers across multiple industrial segments
290    #[serde(rename = "manufacturing-diversified")]
291    ManufacturingDiversified,
292    /// Port operators and marine terminal services
293    #[serde(rename = "marine-ports-services")]
294    MarinePortsAndServices,
295    /// Bulk cargo and tanker shipping companies
296    #[serde(rename = "marine-shipping")]
297    MarineShipping,
298    /// Custom metal fabrication and machined components
299    #[serde(rename = "metal-fabrication")]
300    MetalFabrication,
301    /// Paper, packaging, and pulp product manufacturers
302    #[serde(rename = "paper-paper-products")]
303    PaperAndPaperProducts,
304    /// Environmental controls, water treatment, and remediation
305    #[serde(rename = "pollution-treatment-controls")]
306    PollutionAndTreatmentControls,
307    /// Rail freight carriers and passenger rail operators
308    #[serde(rename = "railroads")]
309    Railroads,
310    /// Equipment rental, leasing, and fleet management
311    #[serde(rename = "rental-leasing-services")]
312    RentalAndLeasingServices,
313    /// Security systems, guards, and monitoring services
314    #[serde(rename = "security-protection-services")]
315    SecurityAndProtectionServices,
316    /// Outsourced business services and BPO companies
317    #[serde(rename = "specialty-business-services")]
318    SpecialtyBusinessServices,
319    /// High-value specialty chemicals and advanced materials
320    #[serde(rename = "specialty-chemicals")]
321    SpecialtyChemicals,
322    /// Specialized industrial machinery and equipment makers
323    #[serde(rename = "specialty-industrial-machinery")]
324    SpecialtyIndustrialMachinery,
325    /// Staffing agencies and employment service providers
326    #[serde(rename = "staffing-employment-services")]
327    StaffingAndEmploymentServices,
328    /// Hand tools, power tools, and hardware accessories
329    #[serde(rename = "tools-accessories")]
330    ToolsAndAccessories,
331    /// Freight trucking and less-than-truckload carriers
332    #[serde(rename = "trucking")]
333    Trucking,
334    /// Waste collection, recycling, and disposal services
335    #[serde(rename = "waste-management")]
336    WasteManagement,
337    // ── Real Estate ──────────────────────────────────────────────────────
338    /// Real estate developers and homebuilders
339    #[serde(rename = "real-estate-development")]
340    RealEstateDevelopment,
341    /// Diversified real estate companies with mixed portfolios
342    #[serde(rename = "real-estate-diversified")]
343    RealEstateDiversified,
344    /// Real estate brokers, agents, and property managers
345    #[serde(rename = "real-estate-services")]
346    RealEstateServices,
347    /// Diversified REITs across multiple property types
348    #[serde(rename = "reit-diversified")]
349    ReitDiversified,
350    /// Healthcare and senior living facility REITs
351    #[serde(rename = "reit-healthcare-facilities")]
352    ReitHealthcareFacilities,
353    /// Hotel and motel property REITs
354    #[serde(rename = "reit-hotel-motel")]
355    ReitHotelAndMotel,
356    /// Industrial, warehouse, and logistics property REITs
357    #[serde(rename = "reit-industrial")]
358    ReitIndustrial,
359    /// Mortgage REITs investing in real estate debt
360    #[serde(rename = "reit-mortgage")]
361    ReitMortgage,
362    /// Office building and commercial property REITs
363    #[serde(rename = "reit-office")]
364    ReitOffice,
365    /// Apartment, multifamily, and residential property REITs
366    #[serde(rename = "reit-residential")]
367    ReitResidential,
368    /// Shopping center and retail property REITs
369    #[serde(rename = "reit-retail")]
370    ReitRetail,
371    /// Specialty REITs (data centers, cell towers, self-storage)
372    #[serde(rename = "reit-specialty")]
373    ReitSpecialty,
374    // ── Technology ───────────────────────────────────────────────────────
375    /// Networking hardware, routers, and communication equipment
376    #[serde(rename = "communication-equipment")]
377    CommunicationEquipment,
378    /// PCs, servers, and computer hardware manufacturers
379    #[serde(rename = "computer-hardware")]
380    ComputerHardware,
381    /// Smartphones, TVs, and consumer electronic devices
382    #[serde(rename = "consumer-electronics")]
383    ConsumerElectronics,
384    /// Data analytics, business intelligence, and AI platforms
385    #[serde(rename = "data-analytics")]
386    DataAnalytics,
387    /// Passive electronic components and circuit boards
388    #[serde(rename = "electronic-components")]
389    ElectronicComponents,
390    /// Distributors of electronics and computer products
391    #[serde(rename = "electronics-computer-distribution")]
392    ElectronicsAndComputerDistribution,
393    /// Value-added resellers and software/hardware distributors
394    #[serde(rename = "hardware-software-distribution")]
395    HardwareAndSoftwareDistribution,
396    /// IT services, outsourcing, and technology consulting
397    #[serde(rename = "information-technology-services")]
398    InformationTechnologyServices,
399    /// Online media, search engines, and digital content platforms
400    #[serde(rename = "internet-content-information")]
401    InternetContentAndInformation,
402    /// Precision instruments, sensors, and test equipment
403    #[serde(rename = "scientific-technical-instruments")]
404    ScientificAndTechnicalInstruments,
405    /// Semiconductor manufacturing equipment and materials
406    #[serde(rename = "semiconductor-equipment-materials")]
407    SemiconductorEquipmentAndMaterials,
408    /// Integrated circuit and chip designers and manufacturers
409    #[serde(rename = "semiconductors")]
410    Semiconductors,
411    /// Business application software companies
412    #[serde(rename = "software-application")]
413    SoftwareApplication,
414    /// Operating systems, middleware, and infrastructure software
415    #[serde(rename = "software-infrastructure")]
416    SoftwareInfrastructure,
417    // ── Communication Services ───────────────────────────────────────────
418    /// Television, radio, and broadcast media companies
419    #[serde(rename = "broadcasting")]
420    Broadcasting,
421    /// Film studios, streaming, and live entertainment
422    #[serde(rename = "entertainment")]
423    Entertainment,
424    /// Book, magazine, newspaper, and digital media publishers
425    #[serde(rename = "publishing")]
426    Publishing,
427    /// Wireless carriers and wireline telephone companies
428    #[serde(rename = "telecom-services")]
429    TelecomServices,
430    // ── Utilities ────────────────────────────────────────────────────────
431    /// Multi-utility companies serving electricity, gas, and water
432    #[serde(rename = "utilities-diversified")]
433    UtilitiesDiversified,
434    /// Independent power producers and energy traders
435    #[serde(rename = "utilities-independent-power-producers")]
436    UtilitiesIndependentPowerProducers,
437    /// Regulated electric utility companies
438    #[serde(rename = "utilities-regulated-electric")]
439    UtilitiesRegulatedElectric,
440    /// Regulated natural gas distribution utilities
441    #[serde(rename = "utilities-regulated-gas")]
442    UtilitiesRegulatedGas,
443    /// Regulated water and wastewater utilities
444    #[serde(rename = "utilities-regulated-water")]
445    UtilitiesRegulatedWater,
446    /// Renewable energy generation companies (wind, solar, hydro)
447    #[serde(rename = "utilities-renewable")]
448    UtilitiesRenewable,
449    // ── Special ──────────────────────────────────────────────────────────
450    /// Closed-end funds investing in debt instruments
451    #[serde(rename = "closed-end-fund-debt")]
452    ClosedEndFundDebt,
453    /// Closed-end funds investing in equities
454    #[serde(rename = "closed-end-fund-equity")]
455    ClosedEndFundEquity,
456    /// Closed-end funds investing in foreign securities
457    #[serde(rename = "closed-end-fund-foreign")]
458    ClosedEndFundForeign,
459    /// Exchange-traded fund products
460    #[serde(rename = "exchange-traded-fund")]
461    ExchangeTradedFund,
462}
463
464impl Industry {
465    /// Returns the lowercase hyphenated slug used by `finance::industry()`.
466    ///
467    /// # Example
468    ///
469    /// ```
470    /// use finance_query::Industry;
471    /// assert_eq!(Industry::Semiconductors.as_slug(), "semiconductors");
472    /// assert_eq!(Industry::SoftwareApplication.as_slug(), "software-application");
473    /// ```
474    pub fn as_slug(self) -> &'static str {
475        match self {
476            Industry::AgriculturalInputs => "agricultural-inputs",
477            Industry::Aluminum => "aluminum",
478            Industry::Coal => "coal",
479            Industry::Copper => "copper",
480            Industry::FarmProducts => "farm-products",
481            Industry::ForestProducts => "forest-products",
482            Industry::Gold => "gold",
483            Industry::LumberAndWoodProduction => "lumber-wood-production",
484            Industry::OtherIndustrialMetalsAndMining => "other-industrial-metals-mining",
485            Industry::OtherPreciousMetalsAndMining => "other-precious-metals-mining",
486            Industry::Silver => "silver",
487            Industry::Steel => "steel",
488            Industry::ThermalCoal => "thermal-coal",
489            Industry::Uranium => "uranium",
490            Industry::ApparelManufacturing => "apparel-manufacturing",
491            Industry::ApparelRetail => "apparel-retail",
492            Industry::AutoAndTruckDealerships => "auto-truck-dealerships",
493            Industry::AutoManufacturers => "auto-manufacturers",
494            Industry::AutoParts => "auto-parts",
495            Industry::BeveragesBrewers => "beverages-brewers",
496            Industry::BeveragesNonAlcoholic => "beverages-non-alcoholic",
497            Industry::BeveragesWineriesAndDistilleries => "beverages-wineries-distilleries",
498            Industry::Confectioners => "confectioners",
499            Industry::DepartmentStores => "department-stores",
500            Industry::DiscountStores => "discount-stores",
501            Industry::ElectronicGamingAndMultimedia => "electronic-gaming-multimedia",
502            Industry::FoodDistribution => "food-distribution",
503            Industry::FootwearAndAccessories => "footwear-accessories",
504            Industry::FurnishingsFixturesAndAppliances => "furnishings-fixtures-appliances",
505            Industry::Gambling => "gambling",
506            Industry::GroceryStores => "grocery-stores",
507            Industry::HomeImprovementRetail => "home-improvement-retail",
508            Industry::HouseholdAndPersonalProducts => "household-personal-products",
509            Industry::InternetRetail => "internet-retail",
510            Industry::Leisure => "leisure",
511            Industry::Lodging => "lodging",
512            Industry::LuxuryGoods => "luxury-goods",
513            Industry::PackagedFoods => "packaged-foods",
514            Industry::PersonalServices => "personal-services",
515            Industry::ResidentialConstruction => "residential-construction",
516            Industry::ResortsAndCasinos => "resorts-casinos",
517            Industry::Restaurants => "restaurants",
518            Industry::SpecialtyRetail => "specialty-retail",
519            Industry::TextileManufacturing => "textile-manufacturing",
520            Industry::Tobacco => "tobacco",
521            Industry::TravelServices => "travel-services",
522            Industry::OilAndGasDrilling => "oil-gas-drilling",
523            Industry::OilAndGasEAndP => "oil-gas-ep",
524            Industry::OilAndGasEquipmentAndServices => "oil-gas-equipment-services",
525            Industry::OilAndGasIntegrated => "oil-gas-integrated",
526            Industry::OilAndGasMidstream => "oil-gas-midstream",
527            Industry::OilAndGasRefiningAndMarketing => "oil-gas-refining-marketing",
528            Industry::Solar => "solar",
529            Industry::AssetManagement => "asset-management",
530            Industry::BanksDiversified => "banks-diversified",
531            Industry::BanksRegional => "banks-regional",
532            Industry::CapitalMarkets => "capital-markets",
533            Industry::CreditServices => "credit-services",
534            Industry::FinancialDataAndStockExchanges => "financial-data-stock-exchanges",
535            Industry::InsuranceBrokers => "insurance-brokers",
536            Industry::InsuranceDiversified => "insurance-diversified",
537            Industry::InsuranceLife => "insurance-life",
538            Industry::InsurancePropertyAndCasualty => "insurance-property-casualty",
539            Industry::InsuranceReinsurance => "insurance-reinsurance",
540            Industry::InsuranceSpecialty => "insurance-specialty",
541            Industry::MortgageFinance => "mortgage-finance",
542            Industry::ShellCompanies => "shell-companies",
543            Industry::Biotechnology => "biotechnology",
544            Industry::DiagnosticsAndResearch => "diagnostics-research",
545            Industry::DrugManufacturersGeneral => "drug-manufacturers-general",
546            Industry::DrugManufacturersSpecialtyAndGeneric => {
547                "drug-manufacturers-specialty-generic"
548            }
549            Industry::HealthInformationServices => "health-information-services",
550            Industry::HealthcarePlans => "healthcare-plans",
551            Industry::MedicalCareFacilities => "medical-care-facilities",
552            Industry::MedicalDevices => "medical-devices",
553            Industry::MedicalDistribution => "medical-distribution",
554            Industry::MedicalInstrumentsAndSupplies => "medical-instruments-supplies",
555            Industry::PharmaceuticalRetailers => "pharmaceutical-retailers",
556            Industry::AerospaceAndDefense => "aerospace-defense",
557            Industry::BuildingMaterials => "building-materials",
558            Industry::BuildingProductsAndEquipment => "building-products-equipment",
559            Industry::BusinessEquipmentAndSupplies => "business-equipment-supplies",
560            Industry::ChemicalManufacturing => "chemical-manufacturing",
561            Industry::Chemicals => "chemicals",
562            Industry::Conglomerates => "conglomerates",
563            Industry::ConsultingServices => "consulting-services",
564            Industry::ElectricalEquipmentAndParts => "electrical-equipment-parts",
565            Industry::EngineeringAndConstruction => "engineering-construction",
566            Industry::FarmAndHeavyConstructionMachinery => "farm-heavy-construction-machinery",
567            Industry::IndustrialDistribution => "industrial-distribution",
568            Industry::InfrastructureOperations => "infrastructure-operations",
569            Industry::IntegratedFreightAndLogistics => "integrated-freight-logistics",
570            Industry::ManufacturingDiversified => "manufacturing-diversified",
571            Industry::MarinePortsAndServices => "marine-ports-services",
572            Industry::MarineShipping => "marine-shipping",
573            Industry::MetalFabrication => "metal-fabrication",
574            Industry::PaperAndPaperProducts => "paper-paper-products",
575            Industry::PollutionAndTreatmentControls => "pollution-treatment-controls",
576            Industry::Railroads => "railroads",
577            Industry::RentalAndLeasingServices => "rental-leasing-services",
578            Industry::SecurityAndProtectionServices => "security-protection-services",
579            Industry::SpecialtyBusinessServices => "specialty-business-services",
580            Industry::SpecialtyChemicals => "specialty-chemicals",
581            Industry::SpecialtyIndustrialMachinery => "specialty-industrial-machinery",
582            Industry::StaffingAndEmploymentServices => "staffing-employment-services",
583            Industry::ToolsAndAccessories => "tools-accessories",
584            Industry::Trucking => "trucking",
585            Industry::WasteManagement => "waste-management",
586            Industry::RealEstateDevelopment => "real-estate-development",
587            Industry::RealEstateDiversified => "real-estate-diversified",
588            Industry::RealEstateServices => "real-estate-services",
589            Industry::ReitDiversified => "reit-diversified",
590            Industry::ReitHealthcareFacilities => "reit-healthcare-facilities",
591            Industry::ReitHotelAndMotel => "reit-hotel-motel",
592            Industry::ReitIndustrial => "reit-industrial",
593            Industry::ReitMortgage => "reit-mortgage",
594            Industry::ReitOffice => "reit-office",
595            Industry::ReitResidential => "reit-residential",
596            Industry::ReitRetail => "reit-retail",
597            Industry::ReitSpecialty => "reit-specialty",
598            Industry::CommunicationEquipment => "communication-equipment",
599            Industry::ComputerHardware => "computer-hardware",
600            Industry::ConsumerElectronics => "consumer-electronics",
601            Industry::DataAnalytics => "data-analytics",
602            Industry::ElectronicComponents => "electronic-components",
603            Industry::ElectronicsAndComputerDistribution => "electronics-computer-distribution",
604            Industry::HardwareAndSoftwareDistribution => "hardware-software-distribution",
605            Industry::InformationTechnologyServices => "information-technology-services",
606            Industry::InternetContentAndInformation => "internet-content-information",
607            Industry::ScientificAndTechnicalInstruments => "scientific-technical-instruments",
608            Industry::SemiconductorEquipmentAndMaterials => "semiconductor-equipment-materials",
609            Industry::Semiconductors => "semiconductors",
610            Industry::SoftwareApplication => "software-application",
611            Industry::SoftwareInfrastructure => "software-infrastructure",
612            Industry::Broadcasting => "broadcasting",
613            Industry::Entertainment => "entertainment",
614            Industry::Publishing => "publishing",
615            Industry::TelecomServices => "telecom-services",
616            Industry::UtilitiesDiversified => "utilities-diversified",
617            Industry::UtilitiesIndependentPowerProducers => "utilities-independent-power-producers",
618            Industry::UtilitiesRegulatedElectric => "utilities-regulated-electric",
619            Industry::UtilitiesRegulatedGas => "utilities-regulated-gas",
620            Industry::UtilitiesRegulatedWater => "utilities-regulated-water",
621            Industry::UtilitiesRenewable => "utilities-renewable",
622            Industry::ClosedEndFundDebt => "closed-end-fund-debt",
623            Industry::ClosedEndFundEquity => "closed-end-fund-equity",
624            Industry::ClosedEndFundForeign => "closed-end-fund-foreign",
625            Industry::ExchangeTradedFund => "exchange-traded-fund",
626        }
627    }
628
629    /// Returns the display name used by the Yahoo Finance screener.
630    ///
631    /// # Example
632    ///
633    /// ```
634    /// use finance_query::Industry;
635    /// assert_eq!(Industry::Semiconductors.screener_value(), "Semiconductors");
636    /// assert_eq!(Industry::OilAndGasDrilling.screener_value(), "Oil & Gas Drilling");
637    /// ```
638    pub fn screener_value(self) -> &'static str {
639        match self {
640            Industry::AgriculturalInputs => "Agricultural Inputs",
641            Industry::Aluminum => "Aluminum",
642            Industry::Coal => "Coal",
643            Industry::Copper => "Copper",
644            Industry::FarmProducts => "Farm Products",
645            Industry::ForestProducts => "Forest Products",
646            Industry::Gold => "Gold",
647            Industry::LumberAndWoodProduction => "Lumber & Wood Production",
648            Industry::OtherIndustrialMetalsAndMining => "Other Industrial Metals & Mining",
649            Industry::OtherPreciousMetalsAndMining => "Other Precious Metals & Mining",
650            Industry::Silver => "Silver",
651            Industry::Steel => "Steel",
652            Industry::ThermalCoal => "Thermal Coal",
653            Industry::Uranium => "Uranium",
654            Industry::ApparelManufacturing => "Apparel Manufacturing",
655            Industry::ApparelRetail => "Apparel Retail",
656            Industry::AutoAndTruckDealerships => "Auto & Truck Dealerships",
657            Industry::AutoManufacturers => "Auto Manufacturers",
658            Industry::AutoParts => "Auto Parts",
659            Industry::BeveragesBrewers => "Beverages - Brewers",
660            Industry::BeveragesNonAlcoholic => "Beverages - Non-Alcoholic",
661            Industry::BeveragesWineriesAndDistilleries => "Beverages - Wineries & Distilleries",
662            Industry::Confectioners => "Confectioners",
663            Industry::DepartmentStores => "Department Stores",
664            Industry::DiscountStores => "Discount Stores",
665            Industry::ElectronicGamingAndMultimedia => "Electronic Gaming & Multimedia",
666            Industry::FoodDistribution => "Food Distribution",
667            Industry::FootwearAndAccessories => "Footwear & Accessories",
668            Industry::FurnishingsFixturesAndAppliances => "Furnishings, Fixtures & Appliances",
669            Industry::Gambling => "Gambling",
670            Industry::GroceryStores => "Grocery Stores",
671            Industry::HomeImprovementRetail => "Home Improvement Retail",
672            Industry::HouseholdAndPersonalProducts => "Household & Personal Products",
673            Industry::InternetRetail => "Internet Retail",
674            Industry::Leisure => "Leisure",
675            Industry::Lodging => "Lodging",
676            Industry::LuxuryGoods => "Luxury Goods",
677            Industry::PackagedFoods => "Packaged Foods",
678            Industry::PersonalServices => "Personal Services",
679            Industry::ResidentialConstruction => "Residential Construction",
680            Industry::ResortsAndCasinos => "Resorts & Casinos",
681            Industry::Restaurants => "Restaurants",
682            Industry::SpecialtyRetail => "Specialty Retail",
683            Industry::TextileManufacturing => "Textile Manufacturing",
684            Industry::Tobacco => "Tobacco",
685            Industry::TravelServices => "Travel Services",
686            Industry::OilAndGasDrilling => "Oil & Gas Drilling",
687            Industry::OilAndGasEAndP => "Oil & Gas E&P",
688            Industry::OilAndGasEquipmentAndServices => "Oil & Gas Equipment & Services",
689            Industry::OilAndGasIntegrated => "Oil & Gas Integrated",
690            Industry::OilAndGasMidstream => "Oil & Gas Midstream",
691            Industry::OilAndGasRefiningAndMarketing => "Oil & Gas Refining & Marketing",
692            Industry::Solar => "Solar",
693            Industry::AssetManagement => "Asset Management",
694            Industry::BanksDiversified => "Banks - Diversified",
695            Industry::BanksRegional => "Banks - Regional",
696            Industry::CapitalMarkets => "Capital Markets",
697            Industry::CreditServices => "Credit Services",
698            Industry::FinancialDataAndStockExchanges => "Financial Data & Stock Exchanges",
699            Industry::InsuranceBrokers => "Insurance Brokers",
700            Industry::InsuranceDiversified => "Insurance - Diversified",
701            Industry::InsuranceLife => "Insurance - Life",
702            Industry::InsurancePropertyAndCasualty => "Insurance - Property & Casualty",
703            Industry::InsuranceReinsurance => "Insurance - Reinsurance",
704            Industry::InsuranceSpecialty => "Insurance - Specialty",
705            Industry::MortgageFinance => "Mortgage Finance",
706            Industry::ShellCompanies => "Shell Companies",
707            Industry::Biotechnology => "Biotechnology",
708            Industry::DiagnosticsAndResearch => "Diagnostics & Research",
709            Industry::DrugManufacturersGeneral => "Drug Manufacturers - General",
710            Industry::DrugManufacturersSpecialtyAndGeneric => {
711                "Drug Manufacturers - Specialty & Generic"
712            }
713            Industry::HealthInformationServices => "Health Information Services",
714            Industry::HealthcarePlans => "Healthcare Plans",
715            Industry::MedicalCareFacilities => "Medical Care Facilities",
716            Industry::MedicalDevices => "Medical Devices",
717            Industry::MedicalDistribution => "Medical Distribution",
718            Industry::MedicalInstrumentsAndSupplies => "Medical Instruments & Supplies",
719            Industry::PharmaceuticalRetailers => "Pharmaceutical Retailers",
720            Industry::AerospaceAndDefense => "Aerospace & Defense",
721            Industry::BuildingMaterials => "Building Materials",
722            Industry::BuildingProductsAndEquipment => "Building Products & Equipment",
723            Industry::BusinessEquipmentAndSupplies => "Business Equipment & Supplies",
724            Industry::ChemicalManufacturing => "Chemical Manufacturing",
725            Industry::Chemicals => "Chemicals",
726            Industry::Conglomerates => "Conglomerates",
727            Industry::ConsultingServices => "Consulting Services",
728            Industry::ElectricalEquipmentAndParts => "Electrical Equipment & Parts",
729            Industry::EngineeringAndConstruction => "Engineering & Construction",
730            Industry::FarmAndHeavyConstructionMachinery => "Farm & Heavy Construction Machinery",
731            Industry::IndustrialDistribution => "Industrial Distribution",
732            Industry::InfrastructureOperations => "Infrastructure Operations",
733            Industry::IntegratedFreightAndLogistics => "Integrated Freight & Logistics",
734            Industry::ManufacturingDiversified => "Manufacturing - Diversified",
735            Industry::MarinePortsAndServices => "Marine Ports & Services",
736            Industry::MarineShipping => "Marine Shipping",
737            Industry::MetalFabrication => "Metal Fabrication",
738            Industry::PaperAndPaperProducts => "Paper & Paper Products",
739            Industry::PollutionAndTreatmentControls => "Pollution & Treatment Controls",
740            Industry::Railroads => "Railroads",
741            Industry::RentalAndLeasingServices => "Rental & Leasing Services",
742            Industry::SecurityAndProtectionServices => "Security & Protection Services",
743            Industry::SpecialtyBusinessServices => "Specialty Business Services",
744            Industry::SpecialtyChemicals => "Specialty Chemicals",
745            Industry::SpecialtyIndustrialMachinery => "Specialty Industrial Machinery",
746            Industry::StaffingAndEmploymentServices => "Staffing & Employment Services",
747            Industry::ToolsAndAccessories => "Tools & Accessories",
748            Industry::Trucking => "Trucking",
749            Industry::WasteManagement => "Waste Management",
750            Industry::RealEstateDevelopment => "Real Estate - Development",
751            Industry::RealEstateDiversified => "Real Estate - Diversified",
752            Industry::RealEstateServices => "Real Estate Services",
753            Industry::ReitDiversified => "REIT - Diversified",
754            Industry::ReitHealthcareFacilities => "REIT - Healthcare Facilities",
755            Industry::ReitHotelAndMotel => "REIT - Hotel & Motel",
756            Industry::ReitIndustrial => "REIT - Industrial",
757            Industry::ReitMortgage => "REIT - Mortgage",
758            Industry::ReitOffice => "REIT - Office",
759            Industry::ReitResidential => "REIT - Residential",
760            Industry::ReitRetail => "REIT - Retail",
761            Industry::ReitSpecialty => "REIT - Specialty",
762            Industry::CommunicationEquipment => "Communication Equipment",
763            Industry::ComputerHardware => "Computer Hardware",
764            Industry::ConsumerElectronics => "Consumer Electronics",
765            Industry::DataAnalytics => "Data Analytics",
766            Industry::ElectronicComponents => "Electronic Components",
767            Industry::ElectronicsAndComputerDistribution => "Electronics & Computer Distribution",
768            Industry::HardwareAndSoftwareDistribution => "Hardware & Software Distribution",
769            Industry::InformationTechnologyServices => "Information Technology Services",
770            Industry::InternetContentAndInformation => "Internet Content & Information",
771            Industry::ScientificAndTechnicalInstruments => "Scientific & Technical Instruments",
772            Industry::SemiconductorEquipmentAndMaterials => "Semiconductor Equipment & Materials",
773            Industry::Semiconductors => "Semiconductors",
774            Industry::SoftwareApplication => "Software - Application",
775            Industry::SoftwareInfrastructure => "Software - Infrastructure",
776            Industry::Broadcasting => "Broadcasting",
777            Industry::Entertainment => "Entertainment",
778            Industry::Publishing => "Publishing",
779            Industry::TelecomServices => "Telecom Services",
780            Industry::UtilitiesDiversified => "Utilities - Diversified",
781            Industry::UtilitiesIndependentPowerProducers => {
782                "Utilities - Independent Power Producers"
783            }
784            Industry::UtilitiesRegulatedElectric => "Utilities - Regulated Electric",
785            Industry::UtilitiesRegulatedGas => "Utilities - Regulated Gas",
786            Industry::UtilitiesRegulatedWater => "Utilities - Regulated Water",
787            Industry::UtilitiesRenewable => "Utilities - Renewable",
788            Industry::ClosedEndFundDebt => "Closed-End Fund - Debt",
789            Industry::ClosedEndFundEquity => "Closed-End Fund - Equity",
790            Industry::ClosedEndFundForeign => "Closed-End Fund - Foreign",
791            Industry::ExchangeTradedFund => "Exchange Traded Fund",
792        }
793    }
794}
795
796impl std::str::FromStr for Industry {
797    type Err = ();
798
799    /// Parses the same kebab-case slug returned by [`Industry::as_slug`].
800    fn from_str(s: &str) -> Result<Self, Self::Err> {
801        match s {
802            "agricultural-inputs" => Ok(Industry::AgriculturalInputs),
803            "aluminum" => Ok(Industry::Aluminum),
804            "coal" => Ok(Industry::Coal),
805            "copper" => Ok(Industry::Copper),
806            "farm-products" => Ok(Industry::FarmProducts),
807            "forest-products" => Ok(Industry::ForestProducts),
808            "gold" => Ok(Industry::Gold),
809            "lumber-wood-production" => Ok(Industry::LumberAndWoodProduction),
810            "other-industrial-metals-mining" => Ok(Industry::OtherIndustrialMetalsAndMining),
811            "other-precious-metals-mining" => Ok(Industry::OtherPreciousMetalsAndMining),
812            "silver" => Ok(Industry::Silver),
813            "steel" => Ok(Industry::Steel),
814            "thermal-coal" => Ok(Industry::ThermalCoal),
815            "uranium" => Ok(Industry::Uranium),
816            "apparel-manufacturing" => Ok(Industry::ApparelManufacturing),
817            "apparel-retail" => Ok(Industry::ApparelRetail),
818            "auto-truck-dealerships" => Ok(Industry::AutoAndTruckDealerships),
819            "auto-manufacturers" => Ok(Industry::AutoManufacturers),
820            "auto-parts" => Ok(Industry::AutoParts),
821            "beverages-brewers" => Ok(Industry::BeveragesBrewers),
822            "beverages-non-alcoholic" => Ok(Industry::BeveragesNonAlcoholic),
823            "beverages-wineries-distilleries" => Ok(Industry::BeveragesWineriesAndDistilleries),
824            "confectioners" => Ok(Industry::Confectioners),
825            "department-stores" => Ok(Industry::DepartmentStores),
826            "discount-stores" => Ok(Industry::DiscountStores),
827            "electronic-gaming-multimedia" => Ok(Industry::ElectronicGamingAndMultimedia),
828            "food-distribution" => Ok(Industry::FoodDistribution),
829            "footwear-accessories" => Ok(Industry::FootwearAndAccessories),
830            "furnishings-fixtures-appliances" => Ok(Industry::FurnishingsFixturesAndAppliances),
831            "gambling" => Ok(Industry::Gambling),
832            "grocery-stores" => Ok(Industry::GroceryStores),
833            "home-improvement-retail" => Ok(Industry::HomeImprovementRetail),
834            "household-personal-products" => Ok(Industry::HouseholdAndPersonalProducts),
835            "internet-retail" => Ok(Industry::InternetRetail),
836            "leisure" => Ok(Industry::Leisure),
837            "lodging" => Ok(Industry::Lodging),
838            "luxury-goods" => Ok(Industry::LuxuryGoods),
839            "packaged-foods" => Ok(Industry::PackagedFoods),
840            "personal-services" => Ok(Industry::PersonalServices),
841            "residential-construction" => Ok(Industry::ResidentialConstruction),
842            "resorts-casinos" => Ok(Industry::ResortsAndCasinos),
843            "restaurants" => Ok(Industry::Restaurants),
844            "specialty-retail" => Ok(Industry::SpecialtyRetail),
845            "textile-manufacturing" => Ok(Industry::TextileManufacturing),
846            "tobacco" => Ok(Industry::Tobacco),
847            "travel-services" => Ok(Industry::TravelServices),
848            "oil-gas-drilling" => Ok(Industry::OilAndGasDrilling),
849            "oil-gas-ep" => Ok(Industry::OilAndGasEAndP),
850            "oil-gas-equipment-services" => Ok(Industry::OilAndGasEquipmentAndServices),
851            "oil-gas-integrated" => Ok(Industry::OilAndGasIntegrated),
852            "oil-gas-midstream" => Ok(Industry::OilAndGasMidstream),
853            "oil-gas-refining-marketing" => Ok(Industry::OilAndGasRefiningAndMarketing),
854            "solar" => Ok(Industry::Solar),
855            "asset-management" => Ok(Industry::AssetManagement),
856            "banks-diversified" => Ok(Industry::BanksDiversified),
857            "banks-regional" => Ok(Industry::BanksRegional),
858            "capital-markets" => Ok(Industry::CapitalMarkets),
859            "credit-services" => Ok(Industry::CreditServices),
860            "financial-data-stock-exchanges" => Ok(Industry::FinancialDataAndStockExchanges),
861            "insurance-brokers" => Ok(Industry::InsuranceBrokers),
862            "insurance-diversified" => Ok(Industry::InsuranceDiversified),
863            "insurance-life" => Ok(Industry::InsuranceLife),
864            "insurance-property-casualty" => Ok(Industry::InsurancePropertyAndCasualty),
865            "insurance-reinsurance" => Ok(Industry::InsuranceReinsurance),
866            "insurance-specialty" => Ok(Industry::InsuranceSpecialty),
867            "mortgage-finance" => Ok(Industry::MortgageFinance),
868            "shell-companies" => Ok(Industry::ShellCompanies),
869            "biotechnology" => Ok(Industry::Biotechnology),
870            "diagnostics-research" => Ok(Industry::DiagnosticsAndResearch),
871            "drug-manufacturers-general" => Ok(Industry::DrugManufacturersGeneral),
872            "drug-manufacturers-specialty-generic" => {
873                Ok(Industry::DrugManufacturersSpecialtyAndGeneric)
874            }
875            "health-information-services" => Ok(Industry::HealthInformationServices),
876            "healthcare-plans" => Ok(Industry::HealthcarePlans),
877            "medical-care-facilities" => Ok(Industry::MedicalCareFacilities),
878            "medical-devices" => Ok(Industry::MedicalDevices),
879            "medical-distribution" => Ok(Industry::MedicalDistribution),
880            "medical-instruments-supplies" => Ok(Industry::MedicalInstrumentsAndSupplies),
881            "pharmaceutical-retailers" => Ok(Industry::PharmaceuticalRetailers),
882            "aerospace-defense" => Ok(Industry::AerospaceAndDefense),
883            "building-materials" => Ok(Industry::BuildingMaterials),
884            "building-products-equipment" => Ok(Industry::BuildingProductsAndEquipment),
885            "business-equipment-supplies" => Ok(Industry::BusinessEquipmentAndSupplies),
886            "chemical-manufacturing" => Ok(Industry::ChemicalManufacturing),
887            "chemicals" => Ok(Industry::Chemicals),
888            "conglomerates" => Ok(Industry::Conglomerates),
889            "consulting-services" => Ok(Industry::ConsultingServices),
890            "electrical-equipment-parts" => Ok(Industry::ElectricalEquipmentAndParts),
891            "engineering-construction" => Ok(Industry::EngineeringAndConstruction),
892            "farm-heavy-construction-machinery" => Ok(Industry::FarmAndHeavyConstructionMachinery),
893            "industrial-distribution" => Ok(Industry::IndustrialDistribution),
894            "infrastructure-operations" => Ok(Industry::InfrastructureOperations),
895            "integrated-freight-logistics" => Ok(Industry::IntegratedFreightAndLogistics),
896            "manufacturing-diversified" => Ok(Industry::ManufacturingDiversified),
897            "marine-ports-services" => Ok(Industry::MarinePortsAndServices),
898            "marine-shipping" => Ok(Industry::MarineShipping),
899            "metal-fabrication" => Ok(Industry::MetalFabrication),
900            "paper-paper-products" => Ok(Industry::PaperAndPaperProducts),
901            "pollution-treatment-controls" => Ok(Industry::PollutionAndTreatmentControls),
902            "railroads" => Ok(Industry::Railroads),
903            "rental-leasing-services" => Ok(Industry::RentalAndLeasingServices),
904            "security-protection-services" => Ok(Industry::SecurityAndProtectionServices),
905            "specialty-business-services" => Ok(Industry::SpecialtyBusinessServices),
906            "specialty-chemicals" => Ok(Industry::SpecialtyChemicals),
907            "specialty-industrial-machinery" => Ok(Industry::SpecialtyIndustrialMachinery),
908            "staffing-employment-services" => Ok(Industry::StaffingAndEmploymentServices),
909            "tools-accessories" => Ok(Industry::ToolsAndAccessories),
910            "trucking" => Ok(Industry::Trucking),
911            "waste-management" => Ok(Industry::WasteManagement),
912            "real-estate-development" => Ok(Industry::RealEstateDevelopment),
913            "real-estate-diversified" => Ok(Industry::RealEstateDiversified),
914            "real-estate-services" => Ok(Industry::RealEstateServices),
915            "reit-diversified" => Ok(Industry::ReitDiversified),
916            "reit-healthcare-facilities" => Ok(Industry::ReitHealthcareFacilities),
917            "reit-hotel-motel" => Ok(Industry::ReitHotelAndMotel),
918            "reit-industrial" => Ok(Industry::ReitIndustrial),
919            "reit-mortgage" => Ok(Industry::ReitMortgage),
920            "reit-office" => Ok(Industry::ReitOffice),
921            "reit-residential" => Ok(Industry::ReitResidential),
922            "reit-retail" => Ok(Industry::ReitRetail),
923            "reit-specialty" => Ok(Industry::ReitSpecialty),
924            "communication-equipment" => Ok(Industry::CommunicationEquipment),
925            "computer-hardware" => Ok(Industry::ComputerHardware),
926            "consumer-electronics" => Ok(Industry::ConsumerElectronics),
927            "data-analytics" => Ok(Industry::DataAnalytics),
928            "electronic-components" => Ok(Industry::ElectronicComponents),
929            "electronics-computer-distribution" => Ok(Industry::ElectronicsAndComputerDistribution),
930            "hardware-software-distribution" => Ok(Industry::HardwareAndSoftwareDistribution),
931            "information-technology-services" => Ok(Industry::InformationTechnologyServices),
932            "internet-content-information" => Ok(Industry::InternetContentAndInformation),
933            "scientific-technical-instruments" => Ok(Industry::ScientificAndTechnicalInstruments),
934            "semiconductor-equipment-materials" => Ok(Industry::SemiconductorEquipmentAndMaterials),
935            "semiconductors" => Ok(Industry::Semiconductors),
936            "software-application" => Ok(Industry::SoftwareApplication),
937            "software-infrastructure" => Ok(Industry::SoftwareInfrastructure),
938            "broadcasting" => Ok(Industry::Broadcasting),
939            "entertainment" => Ok(Industry::Entertainment),
940            "publishing" => Ok(Industry::Publishing),
941            "telecom-services" => Ok(Industry::TelecomServices),
942            "utilities-diversified" => Ok(Industry::UtilitiesDiversified),
943            "utilities-independent-power-producers" => {
944                Ok(Industry::UtilitiesIndependentPowerProducers)
945            }
946            "utilities-regulated-electric" => Ok(Industry::UtilitiesRegulatedElectric),
947            "utilities-regulated-gas" => Ok(Industry::UtilitiesRegulatedGas),
948            "utilities-regulated-water" => Ok(Industry::UtilitiesRegulatedWater),
949            "utilities-renewable" => Ok(Industry::UtilitiesRenewable),
950            "closed-end-fund-debt" => Ok(Industry::ClosedEndFundDebt),
951            "closed-end-fund-equity" => Ok(Industry::ClosedEndFundEquity),
952            "closed-end-fund-foreign" => Ok(Industry::ClosedEndFundForeign),
953            "exchange-traded-fund" => Ok(Industry::ExchangeTradedFund),
954            _ => Err(()),
955        }
956    }
957}
958
959impl AsRef<str> for Industry {
960    /// Returns the slug, enabling `finance::industry(Industry::Semiconductors)`.
961    fn as_ref(&self) -> &str {
962        self.as_slug()
963    }
964}
965
966impl From<Industry> for String {
967    /// Returns the screener display name, enabling `EquityField::Industry.eq_str(Industry::Semiconductors)`.
968    fn from(v: Industry) -> Self {
969        v.screener_value().to_string()
970    }
971}