pub struct DocBinding {
pub keys: String,
pub command: Option<String>,
pub when: String,
pub scope: String,
pub typing: Typing,
pub through_modal: bool,
}Expand description
A binding as saved.
Fields§
§keys: StringEmpty for a command’s removal ("-id"), which needs no keys.
command: Option<String>"id", "-id" to remove a command’s bindings, null to unbind
the keys.
when: String§scope: Stringglobal, surface:<name>, system, window:<id> or
panel:<id>; empty or global with a clause requiring a panel
is that panel’s (KeyScope::infer).
typing: Typing§through_modal: boolTrait Implementations§
Source§impl Clone for DocBinding
impl Clone for DocBinding
Source§fn clone(&self) -> DocBinding
fn clone(&self) -> DocBinding
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 DocBinding
impl Debug for DocBinding
Source§impl Default for DocBinding
impl Default for DocBinding
Source§fn default() -> DocBinding
fn default() -> DocBinding
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for DocBinding
impl<'de> Deserialize<'de> for DocBinding
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 DocBinding
impl PartialEq for DocBinding
Source§impl Serialize for DocBinding
impl Serialize for DocBinding
impl StructuralPartialEq for DocBinding
Auto Trait Implementations§
impl Freeze for DocBinding
impl RefUnwindSafe for DocBinding
impl Send for DocBinding
impl Sync for DocBinding
impl Unpin for DocBinding
impl UnsafeUnpin for DocBinding
impl UnwindSafe for DocBinding
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