Struct vtubestudio::data::Hotkey
source · [−]pub struct Hotkey {
pub name: String,
pub type_: EnumString<HotkeyAction>,
pub file: String,
pub hotkey_id: String,
pub description: Option<String>,
pub key_combination: Vec<String>,
pub on_screen_button_id: i32,
}
Expand description
Used in HotkeysInCurrentModelResponse
.
Fields
name: String
The name of the hotkey.
type_: EnumString<HotkeyAction>
The hotkey type.
file: String
The JSON file associated with this hotkey, if any (possibly an empty string).
E.g., "myExpression_1.exp3.json"
, "myAnimation.motion3.json"
, "someOtherModel.vtube.json"
.
hotkey_id: String
Unique ID of the hotkey.
description: Option<String>
Human-readable description of the hotkey type.
key_combination: Vec<String>
Keyboard/mouse key combination that will trigger this hotkey.
According to the documentation, at the moment this array will always be empty, but may be reintroduced in a future update.
On-screen button ID.
1
(top) to 8
(bottom), or -1
if no on-screen button has been set for this hotkey.,
Trait Implementations
sourceimpl<'de> Deserialize<'de> for Hotkey
impl<'de> Deserialize<'de> for Hotkey
sourcefn 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
impl StructuralPartialEq for Hotkey
Auto Trait Implementations
impl RefUnwindSafe for Hotkey
impl Send for Hotkey
impl Sync for Hotkey
impl Unpin for Hotkey
impl UnwindSafe for Hotkey
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more