pub struct PreviewCritique {
pub severity: String,
pub code: String,
pub message: String,
}Expand description
A single critique annotation attached to a preview artifact.
Fields§
§severity: StringSeverity level (e.g. "error", "warning", "info").
code: StringMachine-readable critique code (e.g. "contrast.too_low").
message: StringHuman-readable critique message.
Trait Implementations§
Source§impl Clone for PreviewCritique
impl Clone for PreviewCritique
Source§fn clone(&self) -> PreviewCritique
fn clone(&self) -> PreviewCritique
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 PreviewCritique
impl Debug for PreviewCritique
Source§impl<'de> Deserialize<'de> for PreviewCritique
impl<'de> Deserialize<'de> for PreviewCritique
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 PartialEq for PreviewCritique
impl PartialEq for PreviewCritique
Source§fn eq(&self, other: &PreviewCritique) -> bool
fn eq(&self, other: &PreviewCritique) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for PreviewCritique
impl Serialize for PreviewCritique
impl StructuralPartialEq for PreviewCritique
Auto Trait Implementations§
impl Freeze for PreviewCritique
impl RefUnwindSafe for PreviewCritique
impl Send for PreviewCritique
impl Sync for PreviewCritique
impl Unpin for PreviewCritique
impl UnsafeUnpin for PreviewCritique
impl UnwindSafe for PreviewCritique
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