pub enum SupplyChainTier {
Tier1,
Tier2,
Tier3,
}Expand description
Supply chain tier classification.
Variants§
Tier1
Direct supplier to the company (full visibility)
Tier2
Supplier to Tier 1 (partial visibility)
Tier3
Supplier to Tier 2 (minimal visibility)
Implementations§
Source§impl SupplyChainTier
impl SupplyChainTier
Sourcepub fn tier_number(&self) -> u8
pub fn tier_number(&self) -> u8
Get the tier number.
Sourcepub fn visibility(&self) -> f64
pub fn visibility(&self) -> f64
Get visibility level (0.0 to 1.0).
Sourcepub fn child_tier(&self) -> Option<Self>
pub fn child_tier(&self) -> Option<Self>
Get the child tier (supplier to this tier).
Sourcepub fn parent_tier(&self) -> Option<Self>
pub fn parent_tier(&self) -> Option<Self>
Get the parent tier (customer of this tier).
Trait Implementations§
Source§impl Clone for SupplyChainTier
impl Clone for SupplyChainTier
Source§fn clone(&self) -> SupplyChainTier
fn clone(&self) -> SupplyChainTier
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SupplyChainTier
impl Debug for SupplyChainTier
Source§impl Default for SupplyChainTier
impl Default for SupplyChainTier
Source§fn default() -> SupplyChainTier
fn default() -> SupplyChainTier
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for SupplyChainTier
impl<'de> Deserialize<'de> for SupplyChainTier
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>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Hash for SupplyChainTier
impl Hash for SupplyChainTier
Source§impl PartialEq for SupplyChainTier
impl PartialEq for SupplyChainTier
Source§impl Serialize for SupplyChainTier
impl Serialize for SupplyChainTier
impl Copy for SupplyChainTier
impl Eq for SupplyChainTier
impl StructuralPartialEq for SupplyChainTier
Auto Trait Implementations§
impl Freeze for SupplyChainTier
impl RefUnwindSafe for SupplyChainTier
impl Send for SupplyChainTier
impl Sync for SupplyChainTier
impl Unpin for SupplyChainTier
impl UnwindSafe for SupplyChainTier
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.