pub struct DesignDocument {
pub id: String,
pub rev: Option<String>,
pub views: HashMap<String, ViewDef>,
pub filters: HashMap<String, String>,
pub validate_doc_update: Option<String>,
pub shows: HashMap<String, String>,
pub lists: HashMap<String, String>,
pub updates: HashMap<String, String>,
pub language: Option<String>,
}Expand description
A CouchDB design document.
Design documents store view definitions, filter functions, validation functions, and other application logic.
Fields§
§id: String§rev: Option<String>§views: HashMap<String, ViewDef>§filters: HashMap<String, String>§validate_doc_update: Option<String>§shows: HashMap<String, String>§lists: HashMap<String, String>§updates: HashMap<String, String>§language: Option<String>Implementations§
Trait Implementations§
Source§impl Clone for DesignDocument
impl Clone for DesignDocument
Source§fn clone(&self) -> DesignDocument
fn clone(&self) -> DesignDocument
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DesignDocument
impl Debug for DesignDocument
Source§impl<'de> Deserialize<'de> for DesignDocument
impl<'de> Deserialize<'de> for DesignDocument
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for DesignDocument
impl RefUnwindSafe for DesignDocument
impl Send for DesignDocument
impl Sync for DesignDocument
impl Unpin for DesignDocument
impl UnwindSafe for DesignDocument
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