pub struct LiveDecl {
pub snapshot: String,
pub params: BTreeMap<String, Value>,
pub changes: Option<String>,
pub changes_params: BTreeMap<String, Value>,
pub key: String,
pub on: BTreeMap<String, String>,
pub debounce_ms: Option<u64>,
pub when: Option<Value>,
}Expand description
A live declaration: the snapshot method and its params, the changes
method and its own params (changes_params), the key, and the folds by
event type (upsert:ticket, …). A param is a JSON value or { "expr" }.
Fields§
§snapshot: String§params: BTreeMap<String, Value>§changes: Option<String>UI-10: none — a one-shot read.
changes_params: BTreeMap<String, Value>§key: String§on: BTreeMap<String, String>§debounce_ms: Option<u64>UI-10: how long the params must be quiet before it runs again.
when: Option<Value>FRAME-16: while this is false, null, empty or 0 the collection asks
nothing — a boolean, or { "expr" } read from the scope. None: always.
Trait Implementations§
impl StructuralPartialEq for LiveDecl
Auto Trait Implementations§
impl Forget for LiveDecl
impl Freeze for LiveDecl
impl RefUnwindSafe for LiveDecl
impl Send for LiveDecl
impl Sync for LiveDecl
impl Unpin for LiveDecl
impl UnsafeUnpin for LiveDecl
impl UnwindSafe for LiveDecl
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<T> Variant for T
impl<T> Variant for T
Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert this
Variant trait object to &mut dyn Any.Source§fn as_boxed_any(self: Box<T>) -> Box<dyn Any>
fn as_boxed_any(self: Box<T>) -> Box<dyn Any>
Convert this
Variant trait object to Box<dyn Any>.