[][src]Struct nature_common::BizObject

pub struct BizObject {
    pub meta: String,
    pub content: String,
    pub context: HashMap<String, String>,
    pub sys_context: HashMap<String, String>,
    pub states: HashSet<String>,
    pub state_version: i32,
    pub from: Option<FromInstance>,
    pub para: String,
}

A snapshot for a particular Meta

Fields

meta: String

This instance's Type

content: String

What contend in this instance for the Meta

context: HashMap<String, String>

Is a json for a Map[key, value] which maybe used for next Relation

sys_context: HashMap<String, String>

like context but is specified by Nature

states: HashSet<String>state_version: i32from: Option<FromInstance>para: String

Implementations

impl BizObject[src]

pub fn modify_state(&mut self, add_and_delete: &TargetState, meta: &Meta)[src]

Trait Implementations

impl Clone for BizObject[src]

impl Debug for BizObject[src]

impl Default for BizObject[src]

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

impl Eq for BizObject[src]

impl Hash for BizObject[src]

impl PartialEq<BizObject> for BizObject[src]

impl Serialize for BizObject[src]

impl StructuralEq for BizObject[src]

impl StructuralPartialEq for BizObject[src]

Auto Trait Implementations

Blanket Implementations

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

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

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

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

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

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

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

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

type Owned = T

The resulting type after obtaining ownership.

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<V, T> VZip<V> for T where
    V: MultiLane<T>,