pub struct VariantInfo {
pub message_id: Uuid,
pub variant_index: u32,
pub total_variants: u32,
pub is_active: bool,
}Expand description
Summary of one variant at a given tree position — returned when listing variants for a message so clients can render navigation UI.
Fields§
§message_id: UuidVariant’s message ID (the sibling itself).
variant_index: u32Ordinal of this variant among siblings.
total_variants: u32How many variants exist at this position (including this one).
is_active: boolTrue iff this variant is currently on the active path.
Trait Implementations§
Source§impl Clone for VariantInfo
impl Clone for VariantInfo
Source§fn clone(&self) -> VariantInfo
fn clone(&self) -> VariantInfo
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 VariantInfo
impl Debug for VariantInfo
Source§impl<'de> Deserialize<'de> for VariantInfo
impl<'de> Deserialize<'de> for VariantInfo
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for VariantInfo
impl RefUnwindSafe for VariantInfo
impl Send for VariantInfo
impl Sync for VariantInfo
impl Unpin for VariantInfo
impl UnsafeUnpin for VariantInfo
impl UnwindSafe for VariantInfo
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