pub struct CouchFunc {
pub map: String,
pub reduce: Option<String>,
}
Expand description
Constructs a CouchDB
View Function. See
defining-a-view for
details.
use couch_rs::types::view::CouchFunc;
let couch_func = CouchFunc {
map: "function (doc) { if (doc.CLIP == true) { emit(doc.CLIP); } }".to_string(),
reduce: None,
};
Fields§
§map: String
§reduce: Option<String>
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CouchFunc
impl RefUnwindSafe for CouchFunc
impl Send for CouchFunc
impl Sync for CouchFunc
impl Unpin for CouchFunc
impl UnwindSafe for CouchFunc
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more