pub struct ItemAction {
pub action: &'static str,
pub param: &'static str,
pub collection: Option<&'static str>,
pub within: &'static [&'static str],
pub within_params: &'static [&'static str],
}Expand description
One action whose first parameter is an item id, as #[resource]
records it.
Fields§
§action: &'static strThe action’s id.
param: &'static strThe name of its item parameter.
collection: Option<&'static str>The collection field named by #[action(item = "...")], if any.
within: &'static [&'static str]For an item of a nested collection (item = slides.elements): the
enclosing collections, outermost first…
within_params: &'static [&'static str]…and the parameters naming their items.
Trait Implementations§
Source§impl Clone for ItemAction
impl Clone for ItemAction
impl Copy for ItemAction
Source§impl Debug for ItemAction
impl Debug for ItemAction
impl Eq for ItemAction
Source§impl PartialEq for ItemAction
impl PartialEq for ItemAction
impl StructuralPartialEq for ItemAction
Auto Trait Implementations§
impl Forget for ItemAction
impl Freeze for ItemAction
impl Move for ItemAction
impl RefUnwindSafe for ItemAction
impl Send for ItemAction
impl Sync for ItemAction
impl Unpin for ItemAction
impl UnsafeUnpin for ItemAction
impl UnwindSafe for ItemAction
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
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