[][src]Struct nature_common::Meta

pub struct Meta {
    pub version: u32,
    // some fields omitted
}

separator for Meta's key Business Metadata

Fields

version: u32

A Meta can be changed in future, the version will support this without effect the old ones

Implementations

impl Meta[src]

pub fn key_standardize(biz: &str) -> Result<String>[src]

make start with "/" and remove "/" at the end

pub fn new(key: &str, version: u32, meta_type: MetaType) -> Result<Self>[src]

pub fn get_key(&self) -> String[src]

pub fn get_meta_type(&self) -> MetaType[src]

pub fn set_meta_type(&mut self, meta_type: MetaType)[src]

pub fn from_string(meta_str: &str) -> Result<Meta>[src]

meta_str's format : MetaType:[key]:[version]

pub fn has_state_name(&self, name: &str) -> bool[src]

pub fn meta_string(&self) -> String[src]

pub fn set_states(&mut self, states: Option<States>) -> Result<()>[src]

pub fn check_state(
    &self,
    input: &Vec<String>
) -> Result<(Vec<String>, Vec<(String, String)>)>
[src]

return.0 remained return.1 mutex pairs.

pub fn get_states(&self) -> Option<States>[src]

pub fn is_state(&self) -> bool[src]

pub fn set_setting(&mut self, settings: &str) -> Result<()>[src]

before call this to make sure states had initialized.

pub fn get_setting(&self) -> Option<MetaSetting>[src]

pub fn need_cache(&self) -> bool[src]

pub fn check_master(&self, meta: &str) -> bool[src]

Trait Implementations

impl Clone for Meta[src]

impl Debug for Meta[src]

impl Default for Meta[src]

impl Eq for Meta[src]

impl Ord for Meta[src]

impl PartialEq<Meta> for Meta[src]

impl PartialOrd<Meta> for Meta[src]

impl StructuralEq for Meta[src]

impl StructuralPartialEq for Meta[src]

Auto Trait Implementations

impl RefUnwindSafe for Meta

impl Send for Meta

impl Sync for Meta

impl Unpin for Meta

impl UnwindSafe for Meta

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<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>,