[][src]Struct nature_common::KeyCondition

pub struct KeyCondition {
    pub id: String,
    pub meta: String,
    pub key_gt: String,
    pub key_ge: String,
    pub key_lt: String,
    pub key_le: String,
    pub para: String,
    pub state_version: i32,
    pub time_ge: Option<i64>,
    pub time_lt: Option<i64>,
    pub limit: i32,
}

used for query instance by id

Fields

id: Stringmeta: Stringkey_gt: Stringkey_ge: Stringkey_lt: Stringkey_le: Stringpara: Stringstate_version: i32time_ge: Option<i64>time_lt: Option<i64>limit: i32

Implementations

impl KeyCondition[src]

pub fn new(id: ID, meta: &str, para: &str, state_version: i32) -> Self[src]

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

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

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

Trait Implementations

impl Clone for KeyCondition[src]

impl Debug for KeyCondition[src]

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

impl<'_> From<&'_ FromInstance> for KeyCondition[src]

impl<'_> From<&'_ Instance> for KeyCondition[src]

impl Into<KeyCondition> for Instance[src]

impl PartialEq<KeyCondition> for KeyCondition[src]

impl Serialize for KeyCondition[src]

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