Struct chill::ViewRow [] [src]

pub struct ViewRow<K: Deserialize, V: Deserialize> {
    // some fields omitted
}

Contains a single row in an unreduced view response.

See the CouchDB documentation for more details about view rows.

Although ViewRow implements the Ord and PartialOrd traits, Chill makes no guarantee how that ordering is defined and may change the definition in an upcoming release. One consequence is that if an application sorts view rows itself then the result may be in a different order than if the CouchDB server had sorted the rows. This is an anti-pattern; applications should rely on the server to do sorting. Chill defines the ordering only so that applications may use ViewRow in ordered collections such as trees.

Methods

impl<K, V> ViewRow<K, V> where K: Deserialize, V: Deserialize

fn key(&self) -> &K

Returns the row's key.

fn value(&self) -> &V

Returns the row's value.

fn document_path(&self) -> DocumentPathRef

Returns the path of the row's document.

Trait Implementations

Derived Implementations

impl<K: PartialOrd + Deserialize, V: PartialOrd + Deserialize> PartialOrd for ViewRow<K, V>

fn partial_cmp(&self, __arg_0: &ViewRow<K, V>) -> Option<Ordering>

fn lt(&self, __arg_0: &ViewRow<K, V>) -> bool

fn le(&self, __arg_0: &ViewRow<K, V>) -> bool

fn gt(&self, __arg_0: &ViewRow<K, V>) -> bool

fn ge(&self, __arg_0: &ViewRow<K, V>) -> bool

impl<K: PartialEq + Deserialize, V: PartialEq + Deserialize> PartialEq for ViewRow<K, V>

fn eq(&self, __arg_0: &ViewRow<K, V>) -> bool

fn ne(&self, __arg_0: &ViewRow<K, V>) -> bool

impl<K: Ord + Deserialize, V: Ord + Deserialize> Ord for ViewRow<K, V>

fn cmp(&self, __arg_0: &ViewRow<K, V>) -> Ordering

impl<K: Hash + Deserialize, V: Hash + Deserialize> Hash for ViewRow<K, V>

fn hash<__H: Hasher>(&self, __arg_0: &mut __H)

1.3.0fn hash_slice<H>(data: &[Self], state: &mut H) where H: Hasher

impl<K: Eq + Deserialize, V: Eq + Deserialize> Eq for ViewRow<K, V>

impl<K: Debug + Deserialize, V: Debug + Deserialize> Debug for ViewRow<K, V>

fn fmt(&self, __arg_0: &mut Formatter) -> Result

impl<K: Clone + Deserialize, V: Clone + Deserialize> Clone for ViewRow<K, V>

fn clone(&self) -> ViewRow<K, V>

1.0.0fn clone_from(&mut self, source: &Self)