hex-patch 1.12.5

HexPatch is a binary patcher and editor with terminal user interface (TUI), it's capable of disassembling instructions and assembling patches. It supports a variety of architectures and file formats. Also, it can edit remote files via SSH.
Documentation
use serde::{Deserialize, Serialize};

use crate::app::log::NotificationLevel;

#[derive(Debug, Clone, Copy, PartialEq, Eq, Serialize, Deserialize, Default)]
#[serde(rename_all = "lowercase")]
pub enum Verbosity {
    Debug,
    #[default]
    Info,
    Warning,
    Error,
}

impl Verbosity {
    pub fn as_notification_level(&self) -> NotificationLevel {
        match self {
            Verbosity::Debug => NotificationLevel::Debug,
            Verbosity::Info => NotificationLevel::Info,
            Verbosity::Warning => NotificationLevel::Warning,
            Verbosity::Error => NotificationLevel::Error,
        }
    }
}