[][src]Struct nature_common::InstanceNoID

pub struct InstanceNoID {
    pub thing: Thing,
    pub event_time: i64,
    pub execute_time: i64,
    pub create_time: i64,
    pub content: String,
    pub context: HashMap<String, String>,
    pub status: HashSet<String>,
    pub status_version: i32,
    pub from: Option<FromInstance>,
}

A snapshot for a particular Thing

Fields

thing: Thing

This instance's Type

event_time: i64

The time that this instance exists

execute_time: i64

The time which plan to flow for this instance

create_time: i64

When this instance created in db

content: String

What contend in this instance for the Thing

context: HashMap<String, String>

Is a json for a Map[key, value] which contents other instance for other Thing's. Nature can transform those to Instance's by flowing.

Key

context name

Value

json data for a Instance.

status: HashSet<String>status_version: i32from: Option<FromInstance>

Trait Implementations

impl Eq for InstanceNoID[src]

impl PartialEq<InstanceNoID> for InstanceNoID[src]

impl Clone for InstanceNoID[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl Default for InstanceNoID[src]

impl Debug for InstanceNoID[src]

impl Serialize for InstanceNoID[src]

impl<'de> Deserialize<'de> for InstanceNoID[src]

Auto Trait Implementations

Blanket Implementations

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]

impl<T> Erased for T