/// Updates a document with the serialized representation of `contents` in
/// `collection`.
Updates a document with the serialized representation of `contents` in
`collection`.
Updates a document with the serialized representation of ` contents ` in ` collection ` .
pub fn update_serialized<C: SerializedCollection>(
        header: Header,
        contents: &C::Contents,
    ) -> Result<Self, Error> {
        let contents = C::serialize(contents)?;
        Ok(Self::update(C::collection_name()?, header, contents))
    }
pub fn update_serialized < C : SerializedCollection > ( header : Header , contents : & C :: Contents , ) -> Result < Self , Error > { let contents = C :: serialize ( contents ) ? ; Ok ( Self :: update ( C :: collection_name ( ) ? , header , contents ) ) }
Updates a document with the serialized representation of `contents` in
`collection`.
Updates a document with the serialized representation of ` contents ` in ` collection ` .
header
Header
contents
&C::Contents