pub struct StoredEntry {
pub key: String,
pub version: u32,
pub data: Vec<u8>,
}Expand description
A serialized state entry with version metadata.
This is the storage format used by backends. The actual state data is serialized to bytes by the caller.
Fields§
§key: StringThe canonical state key (widget_type::instance_id).
version: u32Schema version from Stateful::state_version().
data: Vec<u8>Serialized state data (JSON bytes with state-persistence feature).
Trait Implementations§
Source§impl Clone for StoredEntry
impl Clone for StoredEntry
Source§fn clone(&self) -> StoredEntry
fn clone(&self) -> StoredEntry
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 moreAuto Trait Implementations§
impl Freeze for StoredEntry
impl RefUnwindSafe for StoredEntry
impl Send for StoredEntry
impl Sync for StoredEntry
impl Unpin for StoredEntry
impl UnsafeUnpin for StoredEntry
impl UnwindSafe for StoredEntry
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