Enum accesskit::DefaultActionVerb
source · [−]pub enum DefaultActionVerb {
Click,
Focus,
Check,
Uncheck,
ClickAncestor,
Jump,
Open,
Press,
Select,
}
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
Focus
Check
Uncheck
ClickAncestor
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
Open
Press
Select
Trait Implementations
sourceimpl Clone for DefaultActionVerb
impl Clone for DefaultActionVerb
sourcefn clone(&self) -> DefaultActionVerb
fn clone(&self) -> DefaultActionVerb
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for DefaultActionVerb
impl Debug for DefaultActionVerb
sourceimpl<'de> Deserialize<'de> for DefaultActionVerb
impl<'de> Deserialize<'de> for DefaultActionVerb
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
sourceimpl Hash for DefaultActionVerb
impl Hash for DefaultActionVerb
sourceimpl JsonSchema for DefaultActionVerb
impl JsonSchema for DefaultActionVerb
sourcefn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
sourcefn json_schema(gen: &mut SchemaGenerator) -> Schema
fn json_schema(gen: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
sourcefn 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 moresourceimpl PartialEq<DefaultActionVerb> for DefaultActionVerb
impl PartialEq<DefaultActionVerb> for DefaultActionVerb
sourcefn eq(&self, other: &DefaultActionVerb) -> bool
fn eq(&self, other: &DefaultActionVerb) -> bool
sourceimpl Serialize for DefaultActionVerb
impl Serialize for DefaultActionVerb
impl Copy for DefaultActionVerb
impl Eq for DefaultActionVerb
impl StructuralEq 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
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