pub const fn insert(collection: CollectionName, id: Option<u64>, contents: Vec<u8>) -> Self {
        Self {
            collection,
            command: Command::Insert { id, contents },
        }
    }
/// Inserts a new document with `contents` into `collection`.  If `id` is
/// `None` a unique id will be generated. If an id is provided and a
/// document already exists with that id, a conflict error will be returned.
Inserts a new document with `contents` into `collection`.  If `id` is
`None` a unique id will be generated. If an id is provided and a
document already exists with that id, a conflict error will be returned.
Inserts a new document with ` contents ` into ` collection ` . If ` id ` is ` None ` a unique id will be generated . If an id is provided and a document already exists with that id a conflict error will be returned .
pub const fn insert(collection: CollectionName, id: Option<u64>, contents: Vec<u8>) -> Self {
        Self {
            collection,
            command: Command::Insert { id, contents },
        }
    }
pub const fn insert ( collection : CollectionName , id : Option < u64 > , contents : Vec < u8 > ) -> Self { Self { collection , command : Command :: Insert { id , contents } , } }
Inserts a new document with `contents` into `collection`.
Inserts a new document with ` contents ` into ` collection ` .
collection
CollectionName
id
Option<u64>
contents
Vec<u8>
collection
CollectionName
id
Option<u64>
contents
Vec<u8>