pub enum SourceCountry {
Japan,
China,
Taiwan,
Korea,
}Expand description
Country/regulatory-region that governs the SDS requirements.
Used to select country-specific extraction rules, validation checks, and compliance-gap reporting.
Variants§
Implementations§
Source§impl SourceCountry
impl SourceCountry
Sourcepub fn infer_from_language(lang: Language) -> Option<Self>
pub fn infer_from_language(lang: Language) -> Option<Self>
Infer the most likely country from a detected language.
English is ambiguous (US, EU, AU, …) and returns None.
The caller may override this inference with an explicit --country flag.
Sourcepub fn name_en(self) -> &'static str
pub fn name_en(self) -> &'static str
Short English name used in log messages and report filenames.
Sourcepub fn regulatory_standard(self) -> &'static str
pub fn regulatory_standard(self) -> &'static str
Primary regulatory standard governing SDS content for this country.
Trait Implementations§
Source§impl Clone for SourceCountry
impl Clone for SourceCountry
Source§fn clone(&self) -> SourceCountry
fn clone(&self) -> SourceCountry
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for SourceCountry
Source§impl Debug for SourceCountry
impl Debug for SourceCountry
impl Eq for SourceCountry
Source§impl PartialEq for SourceCountry
impl PartialEq for SourceCountry
impl StructuralPartialEq for SourceCountry
Auto Trait Implementations§
impl Freeze for SourceCountry
impl RefUnwindSafe for SourceCountry
impl Send for SourceCountry
impl Sync for SourceCountry
impl Unpin for SourceCountry
impl UnsafeUnpin for SourceCountry
impl UnwindSafe for SourceCountry
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
Mutably borrows from an owned value. Read more
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§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
Compare self to
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>
Converts
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>
Converts
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 more