Skip to main content

zellij_utils/opt/rustwide/workdir/assets/prost/
api.pane_frame_style.rs

1// This file is @generated by prost-build.
2#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
3#[repr(i32)]
4pub enum PaneFrameStyle {
5    Full = 0,
6    Titles = 1,
7    None = 2,
8}
9impl PaneFrameStyle {
10    /// String value of the enum field names used in the ProtoBuf definition.
11    ///
12    /// The values are not transformed in any way and thus are considered stable
13    /// (if the ProtoBuf definition does not change) and safe for programmatic use.
14    pub fn as_str_name(&self) -> &'static str {
15        match self {
16            PaneFrameStyle::Full => "Full",
17            PaneFrameStyle::Titles => "Titles",
18            PaneFrameStyle::None => "None",
19        }
20    }
21    /// Creates an enum from field names used in the ProtoBuf definition.
22    pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
23        match value {
24            "Full" => Some(Self::Full),
25            "Titles" => Some(Self::Titles),
26            "None" => Some(Self::None),
27            _ => None,
28        }
29    }
30}