pub struct LeafEntry<S, A, C> {
pub action: A,
pub description: String,
pub category: C,
pub scope: S,
}Expand description
A single action entry in a leaf node.
Fields§
§action: AThe action to execute.
description: StringHuman-readable description of the action.
category: CCategory for grouping related actions.
scope: SScope where this action is valid.
Trait Implementations§
Auto Trait Implementations§
impl<S, A, C> Freeze for LeafEntry<S, A, C>
impl<S, A, C> RefUnwindSafe for LeafEntry<S, A, C>
impl<S, A, C> Send for LeafEntry<S, A, C>
impl<S, A, C> Sync for LeafEntry<S, A, C>
impl<S, A, C> Unpin for LeafEntry<S, A, C>
impl<S, A, C> UnsafeUnpin for LeafEntry<S, A, C>
impl<S, A, C> UnwindSafe for LeafEntry<S, A, C>
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more