Struct chill::testing::ViewResponseBuilder
[−]
[src]
pub struct ViewResponseBuilder<T> { // some fields omitted }
Methods
impl ViewResponseBuilder<IsReduced>
[src]
fn new_reduced<V: Serialize>(value: V) -> Self
fn new_reduced_empty() -> Self
impl ViewResponseBuilder<IsGrouped>
[src]
fn new_grouped() -> Self
fn with_row<K, V>(self, key: K, value: V) -> Self where K: Serialize, V: Serialize
impl ViewResponseBuilder<IsUnreduced>
[src]
fn new_unreduced<D>(db_name: D, total_rows: u64, offset: u64) -> Self where D: Into<DatabaseName>
fn with_row<D, K, V>(self, doc_id: D, key: K, value: V) -> Self where D: Into<DocumentId>, K: Serialize, V: Serialize
fn with_row_with_document<D, K, V>(self, doc_id: D, key: K, value: V, doc: Document) -> Self where D: Into<DocumentId>, K: Serialize, V: Serialize
impl<T> ViewResponseBuilder<T>
[src]
fn with_update_sequence_number(self, update_seq: u64) -> Self
Sets the update sequence number for the view response.
By default, the view response's update sequence number is None
.
fn unwrap(self) -> ViewResponse
Returns the builder's view response.