pub enum Binding {
Engine {
field: usize,
path: Vec<usize>,
},
Session {
session: String,
field: usize,
path: Vec<usize>,
},
Local {
name: String,
path: Vec<usize>,
root: Type,
},
Window {
field: String,
},
}Expand description
Where a binding reads from.
Variants§
Engine
Engine state field, then record field indices.
Session
Session state of the hosting window.
Local
Template variable, pattern binding or component parameter, with the type of the variable itself so record paths can be resolved.
Window
UI state of the hosting window, such as window.idle.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Binding
impl<'de> Deserialize<'de> for Binding
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
impl Eq for Binding
impl StructuralPartialEq for Binding
Auto Trait Implementations§
impl Freeze for Binding
impl RefUnwindSafe for Binding
impl Send for Binding
impl Sync for Binding
impl Unpin for Binding
impl UnsafeUnpin for Binding
impl UnwindSafe for Binding
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