pub fn with_metadata(mut self, metadata: HashMap<String, Value>) -> Self {
        self.metadata = metadata;
        self
    }
Sets the `metadata` Map of the `Document` to the provided HashMap.
src/schemas/document.rs