Enum accesskit::DefaultActionVerb
source · #[repr(u8)]pub enum DefaultActionVerb {
Click = 0,
Focus = 1,
Check = 2,
Uncheck = 3,
ClickAncestor = 4,
Jump = 5,
Open = 6,
Press = 7,
Select = 8,
Unselect = 9,
}
Expand description
Describes the action that will be performed on a given node when executing the default action, which is a click.
In contrast to Action
, these describe what the user can do on the
object, e.g. “press”, not what happens to the object as a result.
Only one verb can be used at a time to describe the default action.
Variants§
Click = 0
Focus = 1
Check = 2
Uncheck = 3
ClickAncestor = 4
A click will be performed on one of the node’s ancestors. This happens when the node itself is not clickable, but one of its ancestors has click handlers attached which are able to capture the click as it bubbles up.
Jump = 5
Open = 6
Press = 7
Select = 8
Unselect = 9
Implementations§
Trait Implementations§
source§impl Clone for DefaultActionVerb
impl Clone for DefaultActionVerb
source§fn clone(&self) -> DefaultActionVerb
fn clone(&self) -> DefaultActionVerb
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 moresource§impl Debug for DefaultActionVerb
impl Debug for DefaultActionVerb
source§impl<'de> Deserialize<'de> for DefaultActionVerb
impl<'de> Deserialize<'de> for DefaultActionVerb
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 Hash for DefaultActionVerb
impl Hash for DefaultActionVerb
source§impl JsonSchema for DefaultActionVerb
impl JsonSchema for DefaultActionVerb
source§fn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
source§fn json_schema(gen: &mut SchemaGenerator) -> Schema
fn json_schema(gen: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
Whether JSON Schemas generated for this type should be re-used where possible using the
$ref
keyword. Read moresource§impl PartialEq for DefaultActionVerb
impl PartialEq for DefaultActionVerb
source§fn eq(&self, other: &DefaultActionVerb) -> bool
fn eq(&self, other: &DefaultActionVerb) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for DefaultActionVerb
impl Serialize for DefaultActionVerb
impl Copy for DefaultActionVerb
impl Eq for DefaultActionVerb
impl StructuralPartialEq for DefaultActionVerb
Auto Trait Implementations§
impl RefUnwindSafe for DefaultActionVerb
impl Send for DefaultActionVerb
impl Sync for DefaultActionVerb
impl Unpin for DefaultActionVerb
impl UnwindSafe for DefaultActionVerb
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