Fields
meta: DocMeta
doc: Object
Implementations
sourceimpl Doc
impl Doc
pub fn into_typed<T: DeserializeOwned>(self) -> Result<T>
pub fn from_typed<T>(meta: DocMeta, doc: T) -> Result<Self>where
T: Serialize,
pub fn from_typed_record<T>(record: Record<T>) -> Selfwhere
T: TypedValue,
pub fn from_untyped_record(record: UntypedRecord) -> Self
pub fn into_untyped_record(self) -> Result<UntypedRecord>
pub fn into_typed_record<T>(self) -> Result<Record<T>, DecodingError>where
T: TypedValue,
pub fn new(meta: DocMeta, doc: Object) -> Self
pub fn id(&self) -> &str
pub fn rev(&self) -> Option<&str>
pub fn set_rev(&mut self, rev: Option<String>)
pub fn is_first_rev(&self) -> Option<bool>
Trait Implementations
sourceimpl<'de> Deserialize<'de> for Doc
impl<'de> Deserialize<'de> for Doc
sourcefn 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
sourceimpl<T> From<TypedRecord<T>> for Docwhere
T: TypedValue,
impl<T> From<TypedRecord<T>> for Docwhere
T: TypedValue,
Auto Trait Implementations
impl RefUnwindSafe for Doc
impl Send for Doc
impl Sync for Doc
impl Unpin for Doc
impl UnwindSafe for Doc
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
impl<T> IntoCollection<T> for T
impl<T> IntoCollection<T> for T
fn into_collection<A>(self) -> SmallVec<A>where
A: Array<Item = T>,
fn into_collection<A>(self) -> SmallVec<A>where
A: Array<Item = T>,
Converts
self
into a collection.fn mapped<U, F, A>(self, f: F) -> SmallVec<A>where
F: FnMut(T) -> U,
A: Array<Item = U>,
impl<T> Same<T> for T
impl<T> Same<T> for T
type Output = T
type Output = T
Should always be
Self