[][src]Struct nature_common::MetaSetting

pub struct MetaSetting {
    pub is_state: bool,
    pub master: Option<String>,
    pub multi_meta: BTreeSet<String>,
    pub cache_saved: bool,
    pub only_one: bool,
}

Fields

is_state: boolmaster: Option<String>

Only useful for state-meta. A meta_string, this meta instance's id will use its master instance's id. As a target meta, if no executor appointed. an auto-converter will be created.

multi_meta: BTreeSet<String>

MetaSettingTemp#multi_meta can't use BTreeSet type, so make this struct for it, it would be good performance for multi_meta verify. each of the item's format is meta-type:business-key:version

cache_saved: bool

Nature will cache the saved instance for a while, this can increase performance greatly to save same instance, such as to generate a timer instance.

only_one: bool

only used by MetaType::Loop, has only one instance generated when loop finished. Requirement: multi_meta should has only one item

Implementations

impl MetaSetting[src]

pub fn check_multi_meta(
    &self,
    instances: &mut Vec<Instance>,
    from: &FromInstance
) -> Result<()>
[src]

pub fn to_json(&self) -> Result<String>[src]

Trait Implementations

impl Clone for MetaSetting[src]

impl Debug for MetaSetting[src]

impl Default for MetaSetting[src]

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

impl Eq for MetaSetting[src]

impl FromStr for MetaSetting[src]

type Err = NatureError

The associated error which can be returned from parsing.

impl Ord for MetaSetting[src]

impl PartialEq<MetaSetting> for MetaSetting[src]

impl PartialOrd<MetaSetting> for MetaSetting[src]

impl Serialize for MetaSetting[src]

impl StructuralEq for MetaSetting[src]

impl StructuralPartialEq for MetaSetting[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>,