pub struct SelectionInfo {
pub kind: SelectionKind,
pub id: String,
pub label: Option<String>,
pub count: Option<u64>,
}Expand description
A description of what is currently selected, for a host that wants to render
an affordance (“Enter to expand 32 Sorcery”) without mirroring engine state
through a callback. Deliberately plain data — graph-explorer-wasm serializes it.
Fields§
§kind: SelectionKind§id: String§label: Option<String>§count: Option<u64>Trait Implementations§
Source§impl Clone for SelectionInfo
impl Clone for SelectionInfo
Source§fn clone(&self) -> SelectionInfo
fn clone(&self) -> SelectionInfo
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 Debug for SelectionInfo
impl Debug for SelectionInfo
Source§impl PartialEq for SelectionInfo
impl PartialEq for SelectionInfo
impl StructuralPartialEq for SelectionInfo
Auto Trait Implementations§
impl Freeze for SelectionInfo
impl RefUnwindSafe for SelectionInfo
impl Send for SelectionInfo
impl Sync for SelectionInfo
impl Unpin for SelectionInfo
impl UnsafeUnpin for SelectionInfo
impl UnwindSafe for SelectionInfo
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