pub struct UiSetShortcutRequest {
pub auth: UiAutomationAuth,
pub command: String,
pub bindings: Vec<String>,
pub when: Option<String>,
}Expand description
POST /api/v1/ui/shortcuts/set — gives one command exactly these keys (docs/specs/SPEC_KEYBOARD_SHORTCUTS_SETTINGS_2026_11_06.md §10).
Fields§
§auth: UiAutomationAuth§command: StringA command id from ListShortcuts.
bindings: Vec<String>The keys the command ends with, in the table’s syntax (ctrl+shift+d; a chord is two keys separated by a
space). Empty unbinds the command.
when: Option<String>Where they work (!textInputFocus, viewType == editor); absent = where the command works today.
Trait Implementations§
Source§impl Clone for UiSetShortcutRequest
impl Clone for UiSetShortcutRequest
Source§fn clone(&self) -> UiSetShortcutRequest
fn clone(&self) -> UiSetShortcutRequest
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 UiSetShortcutRequest
impl Debug for UiSetShortcutRequest
Source§impl<'de> Deserialize<'de> for UiSetShortcutRequest
impl<'de> Deserialize<'de> for UiSetShortcutRequest
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
Auto Trait Implementations§
impl Freeze for UiSetShortcutRequest
impl RefUnwindSafe for UiSetShortcutRequest
impl Send for UiSetShortcutRequest
impl Sync for UiSetShortcutRequest
impl Unpin for UiSetShortcutRequest
impl UnsafeUnpin for UiSetShortcutRequest
impl UnwindSafe for UiSetShortcutRequest
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