pub struct StateField {
pub name: String,
pub ty: Type,
pub doc: String,
pub content: bool,
pub stream: bool,
pub keyed: Option<String>,
}Fields§
§name: String§ty: Type§doc: String§content: bool#[content]: text that is data, shown as it is (see
crate::FieldDef::content).
stream: bool#[stream]: a high-frequency field read even when Engine::quiet()
holds on a wake, so the rest of a large state need not be snapshotted.
keyed: Option<String>#[keyed(field)]: record key field for incremental list updates.
Trait Implementations§
Source§impl Clone for StateField
impl Clone for StateField
Source§impl Debug for StateField
impl Debug for StateField
Source§impl<'de> Deserialize<'de> for StateField
impl<'de> Deserialize<'de> for StateField
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 StateField
Source§impl PartialEq for StateField
impl PartialEq for StateField
Source§impl Serialize for StateField
impl Serialize for StateField
impl StructuralPartialEq for StateField
Auto Trait Implementations§
impl Forget for StateField
impl Freeze for StateField
impl Move for StateField
impl RefUnwindSafe for StateField
impl Send for StateField
impl Sync for StateField
impl Unpin for StateField
impl UnsafeUnpin for StateField
impl UnwindSafe for StateField
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