pub struct RuntimeTaskDefinition<Kind, PresentationCode> {
pub kind: Kind,
pub wire_value: &'static str,
pub display_name: &'static str,
pub presentation_code: PresentationCode,
}Expand description
Product-owned runtime task metadata registered with Forge helpers.
Fields§
§kind: KindProduct-owned task enum variant.
wire_value: &'static strStable wire value stored in task payloads.
display_name: &'static strOperator-facing display name.
presentation_code: PresentationCodeProduct-owned presentation code for UI/i18n mapping.
Trait Implementations§
Source§impl<Kind: Clone, PresentationCode: Clone> Clone for RuntimeTaskDefinition<Kind, PresentationCode>
impl<Kind: Clone, PresentationCode: Clone> Clone for RuntimeTaskDefinition<Kind, PresentationCode>
Source§fn clone(&self) -> RuntimeTaskDefinition<Kind, PresentationCode>
fn clone(&self) -> RuntimeTaskDefinition<Kind, PresentationCode>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<Kind: Debug, PresentationCode: Debug> Debug for RuntimeTaskDefinition<Kind, PresentationCode>
impl<Kind: Debug, PresentationCode: Debug> Debug for RuntimeTaskDefinition<Kind, PresentationCode>
Source§impl<Kind: PartialEq, PresentationCode: PartialEq> PartialEq for RuntimeTaskDefinition<Kind, PresentationCode>
impl<Kind: PartialEq, PresentationCode: PartialEq> PartialEq for RuntimeTaskDefinition<Kind, PresentationCode>
Source§fn eq(&self, other: &RuntimeTaskDefinition<Kind, PresentationCode>) -> bool
fn eq(&self, other: &RuntimeTaskDefinition<Kind, PresentationCode>) -> bool
Tests for
self and other values to be equal, and is used by ==.impl<Kind: Copy, PresentationCode: Copy> Copy for RuntimeTaskDefinition<Kind, PresentationCode>
impl<Kind: Eq, PresentationCode: Eq> Eq for RuntimeTaskDefinition<Kind, PresentationCode>
impl<Kind, PresentationCode> StructuralPartialEq for RuntimeTaskDefinition<Kind, PresentationCode>
Auto Trait Implementations§
impl<Kind, PresentationCode> Freeze for RuntimeTaskDefinition<Kind, PresentationCode>
impl<Kind, PresentationCode> RefUnwindSafe for RuntimeTaskDefinition<Kind, PresentationCode>where
Kind: RefUnwindSafe,
PresentationCode: RefUnwindSafe,
impl<Kind, PresentationCode> Send for RuntimeTaskDefinition<Kind, PresentationCode>
impl<Kind, PresentationCode> Sync for RuntimeTaskDefinition<Kind, PresentationCode>
impl<Kind, PresentationCode> Unpin for RuntimeTaskDefinition<Kind, PresentationCode>
impl<Kind, PresentationCode> UnsafeUnpin for RuntimeTaskDefinition<Kind, PresentationCode>where
Kind: UnsafeUnpin,
PresentationCode: UnsafeUnpin,
impl<Kind, PresentationCode> UnwindSafe for RuntimeTaskDefinition<Kind, PresentationCode>where
Kind: UnwindSafe,
PresentationCode: UnwindSafe,
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,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.