[−][src]Struct nature_common::Meta
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]
&self,
input: &Vec<String>
) -> Result<(Vec<String>, Vec<(String, String)>)>
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]
fn cmp(&self, other: &Meta) -> Ordering
[src]
#[must_use]fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn clamp(self, min: Self, max: Self) -> Self
[src]
impl PartialEq<Meta> for Meta
[src]
impl PartialOrd<Meta> for Meta
[src]
fn partial_cmp(&self, other: &Meta) -> Option<Ordering>
[src]
fn lt(&self, other: &Meta) -> bool
[src]
fn le(&self, other: &Meta) -> bool
[src]
fn gt(&self, other: &Meta) -> bool
[src]
fn ge(&self, other: &Meta) -> bool
[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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
fn equivalent(&self, key: &K) -> bool
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,