pub struct StatePresentation<S: 'static, M: 'static = ()> {
pub id: S,
pub label: Option<&'static str>,
pub description: Option<&'static str>,
pub metadata: M,
}Expand description
Optional state-level presentation metadata.
Fields§
§id: STyped state identifier.
label: Option<&'static str>Optional short human-facing state label.
description: Option<&'static str>Optional longer human-facing state description.
metadata: MConsumer-owned typed state metadata.
Trait Implementations§
Source§impl<S: Clone + 'static, M: Clone + 'static> Clone for StatePresentation<S, M>
impl<S: Clone + 'static, M: Clone + 'static> Clone for StatePresentation<S, M>
Source§fn clone(&self) -> StatePresentation<S, M>
fn clone(&self) -> StatePresentation<S, M>
Returns a duplicate 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 moreimpl<S: Copy + 'static, M: Copy + 'static> Copy for StatePresentation<S, M>
impl<S: Eq + 'static, M: Eq + 'static> Eq for StatePresentation<S, M>
impl<S: 'static, M: 'static> StructuralPartialEq for StatePresentation<S, M>
Auto Trait Implementations§
impl<S, M> Freeze for StatePresentation<S, M>
impl<S, M> RefUnwindSafe for StatePresentation<S, M>where
S: RefUnwindSafe,
M: RefUnwindSafe,
impl<S, M> Send for StatePresentation<S, M>
impl<S, M> Sync for StatePresentation<S, M>
impl<S, M> Unpin for StatePresentation<S, M>
impl<S, M> UnsafeUnpin for StatePresentation<S, M>where
S: UnsafeUnpin,
M: UnsafeUnpin,
impl<S, M> UnwindSafe for StatePresentation<S, M>where
S: UnwindSafe,
M: 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