Struct couch_rs::document::DocResponse
source · pub struct DocResponse<T: TypedCouchDocument> {
pub id: Option<String>,
pub key: Option<Value>,
pub value: Option<DocResponseValue>,
pub error: Option<String>,
pub doc: Option<T>,
}
Fields§
§id: Option<String>
§key: Option<Value>
§value: Option<DocResponseValue>
§error: Option<String>
§doc: Option<T>
Trait Implementations§
source§impl<T: Clone + TypedCouchDocument> Clone for DocResponse<T>
impl<T: Clone + TypedCouchDocument> Clone for DocResponse<T>
source§fn clone(&self) -> DocResponse<T>
fn clone(&self) -> DocResponse<T>
Returns a copy 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<T: Debug + TypedCouchDocument> Debug for DocResponse<T>
impl<T: Debug + TypedCouchDocument> Debug for DocResponse<T>
source§impl<'de, T> Deserialize<'de> for DocResponse<T>where
T: TypedCouchDocument,
impl<'de, T> Deserialize<'de> for DocResponse<T>where
T: TypedCouchDocument,
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
source§impl<T: PartialEq + TypedCouchDocument> PartialEq for DocResponse<T>
impl<T: PartialEq + TypedCouchDocument> PartialEq for DocResponse<T>
source§fn eq(&self, other: &DocResponse<T>) -> bool
fn eq(&self, other: &DocResponse<T>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<T> Serialize for DocResponse<T>where
T: Serialize + TypedCouchDocument,
impl<T> Serialize for DocResponse<T>where
T: Serialize + TypedCouchDocument,
impl<T: Eq + TypedCouchDocument> Eq for DocResponse<T>
impl<T: TypedCouchDocument> StructuralPartialEq for DocResponse<T>
Auto Trait Implementations§
impl<T> Freeze for DocResponse<T>where
T: Freeze,
impl<T> RefUnwindSafe for DocResponse<T>where
T: RefUnwindSafe,
impl<T> Send for DocResponse<T>where
T: Send,
impl<T> Sync for DocResponse<T>where
T: Sync,
impl<T> Unpin for DocResponse<T>where
T: Unpin,
impl<T> UnwindSafe for DocResponse<T>where
T: UnwindSafe,
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