#[non_exhaustive]pub enum ModelLifecycle {
Active,
Deprecated,
Retired,
}Expand description
The lifecycle is authoritative; a past scheduled retirement date alone does not mean that a model has retired.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Trait Implementations§
Source§impl Clone for ModelLifecycle
impl Clone for ModelLifecycle
impl Copy for ModelLifecycle
Source§impl Debug for ModelLifecycle
impl Debug for ModelLifecycle
Source§impl DeclaredFields for ModelLifecycle
impl DeclaredFields for ModelLifecycle
fn into_declared(self) -> Self
Source§impl<'de> Deserialize<'de> for ModelLifecycle
impl<'de> Deserialize<'de> for ModelLifecycle
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
impl Eq for ModelLifecycle
Source§impl PartialEq for ModelLifecycle
impl PartialEq for ModelLifecycle
Source§impl Serialize for ModelLifecycle
impl Serialize for ModelLifecycle
impl StructuralPartialEq for ModelLifecycle
Auto Trait Implementations§
impl Freeze for ModelLifecycle
impl RefUnwindSafe for ModelLifecycle
impl Send for ModelLifecycle
impl Sync for ModelLifecycle
impl Unpin for ModelLifecycle
impl UnsafeUnpin for ModelLifecycle
impl UnwindSafe for ModelLifecycle
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