pub enum Sector {
Technology,
FinancialServices,
ConsumerCyclical,
CommunicationServices,
Healthcare,
Industrials,
ConsumerDefensive,
Energy,
BasicMaterials,
RealEstate,
Utilities,
}Expand description
Market sector types available on Yahoo Finance
Variants§
Technology
Technology sector (software, semiconductors, hardware)
FinancialServices
Financial Services sector (banks, insurance, asset management)
ConsumerCyclical
Consumer Cyclical sector (retail, automotive, leisure)
CommunicationServices
Communication Services sector (telecom, media, entertainment)
Healthcare
Healthcare sector (pharma, biotech, medical devices)
Industrials
Industrials sector (aerospace, machinery, construction)
ConsumerDefensive
Consumer Defensive sector (food, beverages, household products)
Energy
Energy sector (oil, gas, renewable energy)
BasicMaterials
Basic Materials sector (chemicals, metals, mining)
RealEstate
Real Estate sector (REITs, property management)
Utilities
Utilities sector (electric, gas, water utilities)
Implementations§
Source§impl Sector
impl Sector
Sourcepub fn as_api_path(&self) -> &'static str
pub fn as_api_path(&self) -> &'static str
Convert to Yahoo Finance API path segment (lowercase with hyphens)
Sourcepub fn display_name(&self) -> &'static str
pub fn display_name(&self) -> &'static str
Get human-readable display name
Sourcepub fn valid_types() -> &'static str
pub fn valid_types() -> &'static str
List all valid sector types for error messages
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Sector
impl<'de> Deserialize<'de> for Sector
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
impl Copy for Sector
impl Eq for Sector
impl StructuralPartialEq for Sector
Auto Trait Implementations§
impl Freeze for Sector
impl RefUnwindSafe for Sector
impl Send for Sector
impl Sync for Sector
impl Unpin for Sector
impl UnsafeUnpin for Sector
impl UnwindSafe for Sector
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> Key for Twhere
T: Clone,
impl<T> Key for Twhere
T: Clone,
Source§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToCompactString for Twhere
T: Display,
impl<T> ToCompactString for Twhere
T: Display,
Source§fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
ToCompactString::to_compact_string() Read moreSource§fn to_compact_string(&self) -> CompactString
fn to_compact_string(&self) -> CompactString
CompactString. Read moreSource§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.