Struct WorkspaceRuleset
pub struct WorkspaceRuleset {
pub workspace_string: String,
pub monitor: Option<String>,
pub default: Option<bool>,
pub gaps_in: Option<Vec<i64>>,
pub gaps_out: Option<Vec<i64>>,
pub border_size: Option<i64>,
pub border: Option<bool>,
pub shadow: Option<bool>,
pub rounding: Option<bool>,
pub decorate: Option<bool>,
pub persistent: Option<bool>,
}
Expand description
The rules of an individual workspace, as returned by hyprctl json.
Fields§
§workspace_string: String
The name of the workspace
monitor: Option<String>
The monitor the workspace is on
default: Option<bool>
Is it default?
gaps_in: Option<Vec<i64>>
The gaps between windows
gaps_out: Option<Vec<i64>>
The gaps between windows and monitor edges
border_size: Option<i64>
The size of window borders
border: Option<bool>
Are borders enabled?
shadow: Option<bool>
Are shadows enabled?
rounding: Option<bool>
Is rounding enabled?
decorate: Option<bool>
Are window decorations enabled?
persistent: Option<bool>
Is it persistent?
Trait Implementations§
§impl Clone for WorkspaceRuleset
impl Clone for WorkspaceRuleset
§fn clone(&self) -> WorkspaceRuleset
fn clone(&self) -> WorkspaceRuleset
Returns a copy 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 more§impl Debug for WorkspaceRuleset
impl Debug for WorkspaceRuleset
§impl<'de> Deserialize<'de> for WorkspaceRuleset
impl<'de> Deserialize<'de> for WorkspaceRuleset
§fn deserialize<__D>(
__deserializer: __D,
) -> Result<WorkspaceRuleset, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<WorkspaceRuleset, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
§impl HyprDataVec<WorkspaceRuleset> for WorkspaceRules
impl HyprDataVec<WorkspaceRuleset> for WorkspaceRules
§fn to_vec(self) -> Vec<WorkspaceRuleset>
fn to_vec(self) -> Vec<WorkspaceRuleset>
This method returns a vector of data
§impl PartialEq for WorkspaceRuleset
impl PartialEq for WorkspaceRuleset
§impl Serialize for WorkspaceRuleset
impl Serialize for WorkspaceRuleset
§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Eq for WorkspaceRuleset
impl StructuralPartialEq for WorkspaceRuleset
Auto Trait Implementations§
impl Freeze for WorkspaceRuleset
impl RefUnwindSafe for WorkspaceRuleset
impl Send for WorkspaceRuleset
impl Sync for WorkspaceRuleset
impl Unpin for WorkspaceRuleset
impl UnwindSafe for WorkspaceRuleset
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more