We should add provided methods to connection::Collection and SerializedCollection that allow pushing a Vec<Collection::Contents>.
connection::Collection::extend(&[Collection::Contents]) -> Result<Vec<Header>, Error>: Create a transaction with the serialized contents of all the provided values, call apply_transaction, and extract the result headers.
SerializedCollection::extend(Vec<Collection::Contents>, &Connection) -> Result<CollectionDocument<Self>, Error>: Call connection::Collection::extend(), and create new CollectionDocuments from the resulting headers and the original values.
This feature should be able to be written completely inside of the traits, requiring no new implementations in any crates.
We should add provided methods to
connection::Collection
andSerializedCollection
that allow pushing aVec<Collection::Contents>
.connection::Collection::extend(&[Collection::Contents]) -> Result<Vec<Header>, Error>
: Create a transaction with the serialized contents of all the provided values, call apply_transaction, and extract the result headers.SerializedCollection::extend(Vec<Collection::Contents>, &Connection) -> Result<CollectionDocument<Self>, Error>
: Callconnection::Collection::extend()
, and create new CollectionDocuments from the resulting headers and the original values.This feature should be able to be written completely inside of the traits, requiring no new implementations in any crates.