Skip to main content

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

1// This file is @generated by prost-build.
2#[allow(clippy::derive_partial_eq_without_eq)]
3#[derive(Clone, PartialEq, ::prost::Message)]
4pub struct Resize {
5    #[prost(enumeration="ResizeAction", tag="1")]
6    pub resize_action: i32,
7    #[prost(enumeration="ResizeDirection", optional, tag="2")]
8    pub direction: ::core::option::Option<i32>,
9}
10#[allow(clippy::derive_partial_eq_without_eq)]
11#[derive(Clone, PartialEq, ::prost::Message)]
12pub struct MoveDirection {
13    #[prost(enumeration="ResizeDirection", tag="1")]
14    pub direction: i32,
15}
16#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
17#[repr(i32)]
18pub enum ResizeAction {
19    Increase = 0,
20    Decrease = 1,
21}
22impl ResizeAction {
23    /// String value of the enum field names used in the ProtoBuf definition.
24    ///
25    /// The values are not transformed in any way and thus are considered stable
26    /// (if the ProtoBuf definition does not change) and safe for programmatic use.
27    pub fn as_str_name(&self) -> &'static str {
28        match self {
29            ResizeAction::Increase => "Increase",
30            ResizeAction::Decrease => "Decrease",
31        }
32    }
33    /// Creates an enum from field names used in the ProtoBuf definition.
34    pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
35        match value {
36            "Increase" => Some(Self::Increase),
37            "Decrease" => Some(Self::Decrease),
38            _ => None,
39        }
40    }
41}
42#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
43#[repr(i32)]
44pub enum ResizeDirection {
45    Left = 0,
46    Right = 1,
47    Up = 2,
48    Down = 3,
49}
50impl ResizeDirection {
51    /// String value of the enum field names used in the ProtoBuf definition.
52    ///
53    /// The values are not transformed in any way and thus are considered stable
54    /// (if the ProtoBuf definition does not change) and safe for programmatic use.
55    pub fn as_str_name(&self) -> &'static str {
56        match self {
57            ResizeDirection::Left => "Left",
58            ResizeDirection::Right => "Right",
59            ResizeDirection::Up => "Up",
60            ResizeDirection::Down => "Down",
61        }
62    }
63    /// Creates an enum from field names used in the ProtoBuf definition.
64    pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
65        match value {
66            "Left" => Some(Self::Left),
67            "Right" => Some(Self::Right),
68            "Up" => Some(Self::Up),
69            "Down" => Some(Self::Down),
70            _ => None,
71        }
72    }
73}