pub struct Notice {
pub kind: Option<String>,
pub headline: String,
pub details: Vec<String>,
}Expand description
Something reported outside the conversation: one line, with any child
lines under it. A bare string is also read, as a notice with that
headline alone.
Fields§
§kind: Option<String>Stable machine-readable name of what is reported, for a client to act on. Absent when the notice is only for reading.
headline: StringOne-line summary.
details: Vec<String>Lines shown as children of the headline. May be empty.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Notice
impl<'de> Deserialize<'de> for Notice
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 Notice
The notice as plain text: the headline, then one indented line per detail.
impl Display for Notice
The notice as plain text: the headline, then one indented line per detail.
impl Eq for Notice
impl StructuralPartialEq for Notice
Auto Trait Implementations§
impl Forget for Notice
impl Freeze for Notice
impl Move for Notice
impl RefUnwindSafe for Notice
impl Send for Noticewhere
RawVecInner: Send,
impl Sync for Noticewhere
RawVecInner: Sync,
impl Unpin for Notice
impl UnsafeUnpin for Noticewhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
impl UnwindSafe for Noticewhere
RawVecInner: UnwindSafe,
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