pub struct ComponentUiStateSnapshot { /* private fields */ }Expand description
Declarative per-instance UI interaction state captured at revision R for background migration.
Implementations§
Source§impl ComponentUiStateSnapshot
Accessor and builder helpers for ComponentUiStateSnapshot.
impl ComponentUiStateSnapshot
Accessor and builder helpers for ComponentUiStateSnapshot.
Sourcepub fn scroll_anchor(&self) -> Option<&str>
pub fn scroll_anchor(&self) -> Option<&str>
Sourcepub fn focused_node(&self) -> Option<&str>
pub fn focused_node(&self) -> Option<&str>
Sourcepub fn with_scroll(self, anchor_key: String, offset_y: f32) -> Self
pub fn with_scroll(self, anchor_key: String, offset_y: f32) -> Self
Sourcepub fn with_focus(self, node_key: String) -> Self
pub fn with_focus(self, node_key: String) -> Self
Source§impl ComponentUiStateSnapshot
impl ComponentUiStateSnapshot
pub fn get_address(&self) -> &StableAddress
pub fn get_mut_address(&mut self) -> &mut StableAddress
pub fn set_address(&mut self, val: StableAddress) -> &mut Self
pub fn get_schema_version(&self) -> u32
pub fn get_mut_schema_version(&mut self) -> &mut u32
pub fn set_schema_version(&mut self, val: u32) -> &mut Self
pub fn get_mut_scroll_anchor_key(&mut self) -> &mut Option<String>
pub fn set_scroll_anchor_key(&mut self, val: Option<String>) -> &mut Self
pub fn get_scroll_offset_y(&self) -> f32
pub fn get_mut_scroll_offset_y(&mut self) -> &mut f32
pub fn set_scroll_offset_y(&mut self, val: f32) -> &mut Self
pub fn get_mut_focused_node_key(&mut self) -> &mut Option<String>
pub fn set_focused_node_key(&mut self, val: Option<String>) -> &mut Self
pub fn get_form_draft(&self) -> &BTreeMap<String, String>
pub fn get_mut_form_draft(&mut self) -> &mut BTreeMap<String, String>
pub fn set_form_draft(&mut self, val: BTreeMap<String, String>) -> &mut Self
pub fn get_local_data(&self) -> &Value
pub fn get_mut_local_data(&mut self) -> &mut Value
pub fn set_local_data(&mut self, val: Value) -> &mut Self
Source§impl ComponentUiStateSnapshot
impl ComponentUiStateSnapshot
pub fn new(address: StableAddress, schema_version: u32) -> Self
Trait Implementations§
Source§impl Clone for ComponentUiStateSnapshot
impl Clone for ComponentUiStateSnapshot
Source§impl Debug for ComponentUiStateSnapshot
impl Debug for ComponentUiStateSnapshot
Source§impl Default for ComponentUiStateSnapshot
impl Default for ComponentUiStateSnapshot
Source§impl<'de> Deserialize<'de> for ComponentUiStateSnapshot
impl<'de> Deserialize<'de> for ComponentUiStateSnapshot
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
Source§impl PartialEq for ComponentUiStateSnapshot
impl PartialEq for ComponentUiStateSnapshot
Source§impl Serialize for ComponentUiStateSnapshot
impl Serialize for ComponentUiStateSnapshot
impl StructuralPartialEq for ComponentUiStateSnapshot
Auto Trait Implementations§
impl Forget for ComponentUiStateSnapshot
impl Freeze for ComponentUiStateSnapshotwhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<String>: Freeze,
*const LeafNode<String, String> is !null: Freeze,
PhantomData<(Owned, LeafOrInternal)>: Freeze,
PhantomData<Box<(String, String)>>: Freeze,
PhantomData<Value>: Freeze,
*const LeafNode<String, Value> is !null: Freeze,
PhantomData<Box<(String, Value)>>: Freeze,
impl Move for ComponentUiStateSnapshot
impl RefUnwindSafe for ComponentUiStateSnapshot
impl Send for ComponentUiStateSnapshot
impl Sync for ComponentUiStateSnapshot
impl Unpin for ComponentUiStateSnapshot
impl UnsafeUnpin for ComponentUiStateSnapshotwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
*const LeafNode<String, String> is !null: UnsafeUnpin,
PhantomData<(Owned, LeafOrInternal)>: UnsafeUnpin,
PhantomData<Box<(String, String)>>: UnsafeUnpin,
PhantomData<Value>: UnsafeUnpin,
*const LeafNode<String, Value> is !null: UnsafeUnpin,
PhantomData<Box<(String, Value)>>: UnsafeUnpin,
impl UnwindSafe for ComponentUiStateSnapshotwhere
RawVecInner: UnwindSafe,
BTreeMap<String, String>: UnwindSafe,
BTreeMap<String, Value>: 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