pub struct AttentionItem {
pub key: String,
pub kind: AttentionKind,
pub tone: Tone,
pub title: String,
pub subject: Subject,
pub since: Option<u64>,
pub fix: Option<Fix>,
}Expand description
One thing that needs attention.
Fields§
§key: StringThe same while the condition holds, such as cannot-start:paused:halyard/ledger: what a client keys it by.
kind: AttentionKindWhat source it comes from.
tone: ToneHow urgent; a tone this client does not know reads as Tone::Neutral.
title: StringWhat holds, in one line.
subject: SubjectWhat it is about.
since: Option<u64>When the evidence for it began or was taken, in seconds since the Unix epoch; absent when unknown.
fix: Option<Fix>What clears it; absent when there is nothing to name, or the fix is one this client cannot read.
Trait Implementations§
Source§impl Clone for AttentionItem
impl Clone for AttentionItem
Source§impl Debug for AttentionItem
impl Debug for AttentionItem
Source§impl<'de> Deserialize<'de> for AttentionItem
impl<'de> Deserialize<'de> for AttentionItem
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 AttentionItem
Source§impl PartialEq for AttentionItem
impl PartialEq for AttentionItem
Source§impl Serialize for AttentionItem
impl Serialize for AttentionItem
impl StructuralPartialEq for AttentionItem
Auto Trait Implementations§
impl Forget for AttentionItem
impl Freeze for AttentionItem
impl Move for AttentionItem
impl RefUnwindSafe for AttentionItem
impl Send for AttentionItem
impl Sync for AttentionItem
impl Unpin for AttentionItem
impl UnsafeUnpin for AttentionItem
impl UnwindSafe for AttentionItem
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.