pub struct ActionsPluginConfig {
pub actions: Vec<ActionsPluginAction>,
}
Fields§
§actions: Vec<ActionsPluginAction>
Trait Implementations§
Source§impl Clone for ActionsPluginConfig
impl Clone for ActionsPluginConfig
Source§fn clone(&self) -> ActionsPluginConfig
fn clone(&self) -> ActionsPluginConfig
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 ActionsPluginConfig
impl Debug for ActionsPluginConfig
Source§impl Default for ActionsPluginConfig
impl Default for ActionsPluginConfig
Source§fn default() -> Self
fn default() -> Self
Return ActionsPluginConfig { actions: vec![ActionsPluginAction::LockScreen, ActionsPluginAction::Hibernate, ActionsPluginAction::Logout, ActionsPluginAction::Reboot, ActionsPluginAction::Shutdown, ActionsPluginAction::Suspend, ActionsPluginAction::Custom(ActionsPluginActionCustom { names: vec!["Kill".into(), "Stop".into()], details: "Kill or stop a process by name".into(), command: "pkill \"{}\" && notify-send hyprshell \"stopped {}\"".into(), icon: "remove".into(), }), ActionsPluginAction::Custom(ActionsPluginActionCustom { names: vec!["Reload Hyprshell".into()], details: "Reload Hyprshell".into(), command: "sleep 1; hyprshell socat '\"Restart\"'".into(), icon: "system-restart".into(), }),] }
Source§impl<'de> Deserialize<'de> for ActionsPluginConfigwhere
ActionsPluginConfig: Default,
impl<'de> Deserialize<'de> for ActionsPluginConfigwhere
ActionsPluginConfig: Default,
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 ActionsPluginConfig
impl PartialEq for ActionsPluginConfig
Source§impl Serialize for ActionsPluginConfig
impl Serialize for ActionsPluginConfig
impl Eq for ActionsPluginConfig
impl StructuralPartialEq for ActionsPluginConfig
Auto Trait Implementations§
impl Freeze for ActionsPluginConfig
impl RefUnwindSafe for ActionsPluginConfig
impl Send for ActionsPluginConfig
impl Sync for ActionsPluginConfig
impl Unpin for ActionsPluginConfig
impl UnwindSafe for ActionsPluginConfig
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