mirror of
https://github.com/szymon-jozef/libnotify-rs.git
synced 2026-10-27 19:20:43 +01:00
feat: add some derives
This commit is contained in:
@@ -1,11 +1,13 @@
|
|||||||
use crate::libnotify::*;
|
use crate::libnotify::*;
|
||||||
|
|
||||||
|
#[derive(Debug, Clone, Copy)]
|
||||||
pub enum Urgency {
|
pub enum Urgency {
|
||||||
Low,
|
Low,
|
||||||
Normal,
|
Normal,
|
||||||
Critical,
|
Critical,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[derive(Debug, Clone, Copy)]
|
||||||
pub enum ClosedReason {
|
pub enum ClosedReason {
|
||||||
/// Notification not closed
|
/// Notification not closed
|
||||||
Unset,
|
Unset,
|
||||||
@@ -25,6 +27,7 @@ pub enum ClosedReason {
|
|||||||
|
|
||||||
/// Enum representing `[GVariant](https://docs.gtk.org/glib/struct.Variant.html)`
|
/// Enum representing `[GVariant](https://docs.gtk.org/glib/struct.Variant.html)`
|
||||||
/// Used in set hint.
|
/// Used in set hint.
|
||||||
|
#[derive(Debug, Clone)]
|
||||||
pub enum HintValue {
|
pub enum HintValue {
|
||||||
String(String),
|
String(String),
|
||||||
Int32(i32),
|
Int32(i32),
|
||||||
@@ -32,6 +35,7 @@ pub enum HintValue {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// The timeout in milliseconds
|
/// The timeout in milliseconds
|
||||||
|
#[derive(Debug, Clone, Copy)]
|
||||||
pub enum Timeout {
|
pub enum Timeout {
|
||||||
Default,
|
Default,
|
||||||
Never,
|
Never,
|
||||||
|
|||||||
Reference in New Issue
Block a user