#[non_exhaustive]pub struct NoticeAction {
pub id: String,
pub label: String,
pub args: Value,
}Expand description
A button of a notice: the command or action it runs, by id, its
label, and the arguments the command runs with (null, the default,
for none): “Undo this restore”, “Show these photos”.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.id: String§label: String§args: ValueThe command’s arguments; left out of the JSON when null.
Implementations§
Trait Implementations§
Source§impl Clone for NoticeAction
impl Clone for NoticeAction
Source§fn clone(&self) -> NoticeAction
fn clone(&self) -> NoticeAction
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 NoticeAction
impl Debug for NoticeAction
Source§impl<'de> Deserialize<'de> for NoticeAction
impl<'de> Deserialize<'de> for NoticeAction
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 NoticeAction
impl PartialEq for NoticeAction
Source§impl Serialize for NoticeAction
impl Serialize for NoticeAction
impl Eq for NoticeAction
impl StructuralPartialEq for NoticeAction
Auto Trait Implementations§
impl Freeze for NoticeAction
impl RefUnwindSafe for NoticeAction
impl Send for NoticeAction
impl Sync for NoticeAction
impl Unpin for NoticeAction
impl UnsafeUnpin for NoticeAction
impl UnwindSafe for NoticeAction
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