pub enum Status {
Draft,
Stable,
Deprecated,
Other(String),
}Expand description
A concept’s lifecycle status. An absent key means
Status::Stable.
Variants§
Draft
Not yet reviewed; possibly incomplete.
Stable
The default: ready for consumption.
Deprecated
Kept for links and history; no longer current.
Other(String)
A producer-defined value outside the three the spec names. Consumers must tolerate it.
Implementations§
Source§impl Status
impl Status
Sourcepub fn parse(value: Option<&str>) -> Self
pub fn parse(value: Option<&str>) -> Self
Parses a status scalar. None (an absent key) is Status::Stable.
Sourcepub fn is_deprecated(&self) -> bool
pub fn is_deprecated(&self) -> bool
true for Status::Deprecated, kept for links and history, but no
longer current.
Trait Implementations§
impl Eq for Status
impl StructuralPartialEq for Status
Auto Trait Implementations§
impl Freeze for Status
impl RefUnwindSafe for Status
impl Send for Status
impl Sync for Status
impl Unpin for Status
impl UnsafeUnpin for Status
impl UnwindSafe for Status
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