pub enum SectorType {
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 SectorType
impl SectorType
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
Sourcepub fn all() -> &'static [SectorType]
pub fn all() -> &'static [SectorType]
Get all sector types as an array
Trait Implementations§
Source§impl Clone for SectorType
impl Clone for SectorType
Source§fn clone(&self) -> SectorType
fn clone(&self) -> SectorType
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for SectorType
impl Debug for SectorType
Source§impl<'de> Deserialize<'de> for SectorType
impl<'de> Deserialize<'de> for SectorType
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>,
Source§impl Display for SectorType
impl Display for SectorType
Source§impl FromStr for SectorType
impl FromStr for SectorType
Source§impl Hash for SectorType
impl Hash for SectorType
Source§impl PartialEq for SectorType
impl PartialEq for SectorType
Source§impl Serialize for SectorType
impl Serialize for SectorType
impl Copy for SectorType
impl Eq for SectorType
impl StructuralPartialEq for SectorType
Auto Trait Implementations§
impl Freeze for SectorType
impl RefUnwindSafe for SectorType
impl Send for SectorType
impl Sync for SectorType
impl Unpin for SectorType
impl UnwindSafe for SectorType
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.