pub enum RecommendationAction {
Upgrade,
Downgrade,
Initiate,
Maintain,
Resume,
Suspend,
Other(String),
}Expand description
Analyst recommendation actions with canonical variants and extensible fallback.
This enum provides type-safe handling of recommendation actions while gracefully
handling unknown or provider-specific actions through the Other variant.
Variants§
Upgrade
Upgrade action
Downgrade
Downgrade action
Initiate
Initiate coverage
Maintain
Maintain or reiterate recommendation
Resume
Resume coverage
Suspend
Suspend coverage
Other(String)
Unknown or provider-specific action
Trait Implementations§
Source§impl AsRef<str> for RecommendationAction
impl AsRef<str> for RecommendationAction
Source§impl Clone for RecommendationAction
impl Clone for RecommendationAction
Source§fn clone(&self) -> RecommendationAction
fn clone(&self) -> RecommendationAction
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 RecommendationAction
impl Debug for RecommendationAction
Source§impl<'de> Deserialize<'de> for RecommendationAction
impl<'de> Deserialize<'de> for RecommendationAction
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 Display for RecommendationAction
impl Display for RecommendationAction
Source§impl From<RecommendationAction> for String
impl From<RecommendationAction> for String
Source§fn from(action: RecommendationAction) -> Self
fn from(action: RecommendationAction) -> Self
Converts to this type from the input type.
Source§impl From<String> for RecommendationAction
impl From<String> for RecommendationAction
Source§impl FromStr for RecommendationAction
impl FromStr for RecommendationAction
Source§impl Hash for RecommendationAction
impl Hash for RecommendationAction
Source§impl PartialEq for RecommendationAction
impl PartialEq for RecommendationAction
Source§impl Serialize for RecommendationAction
impl Serialize for RecommendationAction
Source§impl TryFrom<&str> for RecommendationAction
impl TryFrom<&str> for RecommendationAction
impl Eq for RecommendationAction
impl StructuralPartialEq for RecommendationAction
Auto Trait Implementations§
impl Freeze for RecommendationAction
impl RefUnwindSafe for RecommendationAction
impl Send for RecommendationAction
impl Sync for RecommendationAction
impl Unpin for RecommendationAction
impl UnwindSafe for RecommendationAction
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