pub struct Advice {
pub severity: String,
pub message: String,
pub command: Option<String>,
}Fields§
§severity: StringPriority level: CRITICAL, HIGH, MEDIUM, LOW, INFO
message: StringHuman-readable advice message
command: Option<String>Suggested shell command (if applicable)
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Advice
impl<'de> Deserialize<'de> for Advice
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
Auto Trait Implementations§
impl Freeze for Advice
impl RefUnwindSafe for Advice
impl Send for Advice
impl Sync for Advice
impl Unpin for Advice
impl UnsafeUnpin for Advice
impl UnwindSafe for Advice
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