pub struct Profile {
pub id: String,
pub title: String,
pub description: String,
pub options: Options,
pub input: InputModifiers,
pub value_keys: ValueKeys,
pub drag_cursors: BTreeMap<DragKind, DragCursor>,
pub bindings: Vec<DocBinding>,
pub view_keys: BTreeMap<String, Vec<String>>,
}Expand description
A pointer profile, as shipped or saved: the pointer-profile
document.
Fields§
§id: StringStable, never translated: darktable.
title: String§description: StringWhat it does, in one sentence.
options: Options§input: InputModifiers§value_keys: ValueKeys§drag_cursors: BTreeMap<DragKind, DragCursor>The drag cursors it changes, by kind ({"move": {"hover": "default"}}, {"pan": {"policy": "always"}}); the others keep
the kit’s (DragKind::cursors by default).
bindings: Vec<DocBinding>Default-layer bindings, as in a keymap document.
view_keys: BTreeMap<String, Vec<String>>The navigation commands’ keys (VIEW_COMMANDS), by command
({"view.fit": ["Home", "Shift+1"]}), after the application the
profile is named after; default-layer bindings like the others,
active while a canvas is in use (VIEW_KEYS_WHEN).
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Profile
impl<'de> Deserialize<'de> for Profile
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
impl StructuralPartialEq for Profile
Auto Trait Implementations§
impl Freeze for Profile
impl RefUnwindSafe for Profile
impl Send for Profile
impl Sync for Profile
impl Unpin for Profile
impl UnsafeUnpin for Profile
impl UnwindSafe for Profile
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