pub struct ExportState {
pub index: usize,
pub rust_name: &'static str,
pub label: Option<&'static str>,
pub description: Option<&'static str>,
pub has_data: bool,
pub is_root: bool,
}Expand description
State metadata preserved in the stable export surface.
Fields§
§index: usizeStable export-local state index.
rust_name: &'static strRust variant name emitted by Statum.
label: Option<&'static str>Optional human-facing label from presentation metadata.
description: Option<&'static str>Optional human-facing description from presentation metadata.
has_data: boolWhether the state carries state_data.
is_root: boolWhether the state has no incoming edge in the exported topology.
Implementations§
Source§impl ExportState
impl ExportState
Trait Implementations§
Source§impl Clone for ExportState
impl Clone for ExportState
Source§fn clone(&self) -> ExportState
fn clone(&self) -> ExportState
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 moreSource§impl Debug for ExportState
impl Debug for ExportState
Source§impl PartialEq for ExportState
impl PartialEq for ExportState
Source§impl Serialize for ExportState
impl Serialize for ExportState
impl Copy for ExportState
impl Eq for ExportState
impl StructuralPartialEq for ExportState
Auto Trait Implementations§
impl Freeze for ExportState
impl RefUnwindSafe for ExportState
impl Send for ExportState
impl Sync for ExportState
impl Unpin for ExportState
impl UnsafeUnpin for ExportState
impl UnwindSafe for ExportState
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