> ## Documentation Index
> Fetch the complete documentation index at: https://docs.kinetica.com/llms.txt
> Use this file to discover all available pages before exploring further.

# InsertRecordsJsonRequest

> InsertRecordsJsonRequest — Kinetica Rust API

[gpudb\_api](https://docs.kinetica.com/content/api/rust/index.md)::<wbr />[json\_records](https://docs.kinetica.com/content/api/rust/json_records/index.md)
[Source](https://github.com/kineticadb/kinetica-api-rust/blob/master/crates/gpudb-api/src/json_records.rs#L66-L75)&#x20;

<pre>`pub struct InsertRecordsJsonRequest {    pub table_name: String,    pub data_text: String,    pub create_table_options: HashMap<String, String>,    pub options: HashMap<String, String>,}`</pre>

A request to insert JSON records.

Fields
`table_name: String`

The table to insert into.

`data_text: String`

The records, as JSON text.

`create_table_options: HashMap<String, String>`

The options of the table to create, if it does not exist.

`options: HashMap<String, String>`

The insertion options.

## Trait Implementations

[Source](https://github.com/kineticadb/kinetica-api-rust/blob/master/crates/gpudb-api/src/json_records.rs#L65)
impl [Clone](https://doc.rust-lang.org/1.98.1/core/clone/trait.Clone.html) for [InsertRecordsJsonRequest](https://docs.kinetica.com/content/api/rust/json_records/struct.InsertRecordsJsonRequest.md)

[Source](https://github.com/kineticadb/kinetica-api-rust/blob/master/crates/gpudb-api/src/json_records.rs#L65)
fn [clone](https://doc.rust-lang.org/1.98.1/core/clone/trait.Clone.html#tymethod.clone)(\&self) -> [InsertRecordsJsonRequest](https://docs.kinetica.com/content/api/rust/json_records/struct.InsertRecordsJsonRequest.md)

Returns a duplicate of the value. [Read more](https://doc.rust-lang.org/1.98.1/core/clone/trait.Clone.html#tymethod.clone)

1.0.0 (const: [unstable](https://github.com/rust-lang/rust/issues/142757)) · [Source](https://doc.rust-lang.org/1.98.1/src/core/clone.rs.html#245-247)
fn [clone\_from](https://doc.rust-lang.org/1.98.1/core/clone/trait.Clone.html#method.clone_from)(\&mut self, source: \&Self)

Performs copy-assignment from `source`. [Read more](https://doc.rust-lang.org/1.98.1/core/clone/trait.Clone.html#method.clone_from)

[Source](https://github.com/kineticadb/kinetica-api-rust/blob/master/crates/gpudb-api/src/json_records.rs#L65)
impl [Debug](https://doc.rust-lang.org/1.98.1/core/fmt/trait.Debug.html) for [InsertRecordsJsonRequest](https://docs.kinetica.com/content/api/rust/json_records/struct.InsertRecordsJsonRequest.md)

[Source](https://github.com/kineticadb/kinetica-api-rust/blob/master/crates/gpudb-api/src/json_records.rs#L65)
fn [fmt](https://doc.rust-lang.org/1.98.1/core/fmt/trait.Debug.html#tymethod.fmt)(\&self, f: \&mut [Formatter](https://doc.rust-lang.org/1.98.1/core/fmt/struct.Formatter.html)\<'\_>) -> [Result](https://doc.rust-lang.org/1.98.1/core/fmt/type.Result.html)

Formats the value using the given formatter. [Read more](https://doc.rust-lang.org/1.98.1/core/fmt/trait.Debug.html#tymethod.fmt)

[Source](https://github.com/kineticadb/kinetica-api-rust/blob/master/crates/gpudb-api/src/json_records.rs#L65)
impl [Default](https://doc.rust-lang.org/1.98.1/core/default/trait.Default.html) for [InsertRecordsJsonRequest](https://docs.kinetica.com/content/api/rust/json_records/struct.InsertRecordsJsonRequest.md)

[Source](https://github.com/kineticadb/kinetica-api-rust/blob/master/crates/gpudb-api/src/json_records.rs#L65)
fn [default](https://doc.rust-lang.org/1.98.1/core/default/trait.Default.html#tymethod.default)() -> [InsertRecordsJsonRequest](https://docs.kinetica.com/content/api/rust/json_records/struct.InsertRecordsJsonRequest.md)

Returns the “default value” for a type. [Read more](https://doc.rust-lang.org/1.98.1/core/default/trait.Default.html#tymethod.default)

[Source](https://github.com/kineticadb/kinetica-api-rust/blob/master/crates/gpudb-api/src/json_records.rs#L65)
impl [Eq](https://doc.rust-lang.org/1.98.1/core/cmp/trait.Eq.html) for [InsertRecordsJsonRequest](https://docs.kinetica.com/content/api/rust/json_records/struct.InsertRecordsJsonRequest.md)

[Source](https://github.com/kineticadb/kinetica-api-rust/blob/master/crates/gpudb-api/src/json_records.rs#L65)
impl [PartialEq](https://doc.rust-lang.org/1.98.1/core/cmp/trait.PartialEq.html) for [InsertRecordsJsonRequest](https://docs.kinetica.com/content/api/rust/json_records/struct.InsertRecordsJsonRequest.md)

[Source](https://github.com/kineticadb/kinetica-api-rust/blob/master/crates/gpudb-api/src/json_records.rs#L65)
fn [eq](https://doc.rust-lang.org/1.98.1/core/cmp/trait.PartialEq.html#tymethod.eq)(\&self, other: &[InsertRecordsJsonRequest](https://docs.kinetica.com/content/api/rust/json_records/struct.InsertRecordsJsonRequest.md)) -> [bool](https://doc.rust-lang.org/1.98.1/std/primitive.bool.html)

Tests for `self` and `other` values to be equal, and is used by `==`.

1.0.0 (const: [unstable](https://github.com/rust-lang/rust/issues/143800)) · [Source](https://doc.rust-lang.org/1.98.1/src/core/cmp.rs.html#263)
fn [ne](https://doc.rust-lang.org/1.98.1/core/cmp/trait.PartialEq.html#method.ne)(\&self, other: [\&Rhs](https://doc.rust-lang.org/1.98.1/std/primitive.reference.html)) -> [bool](https://doc.rust-lang.org/1.98.1/std/primitive.bool.html)

Tests for `!=`. The default implementation is almost always sufficient, and should not be overridden without very good reason.

[Source](https://github.com/kineticadb/kinetica-api-rust/blob/master/crates/gpudb-api/src/json_records.rs#L65)
impl [StructuralPartialEq](https://doc.rust-lang.org/1.98.1/core/marker/trait.StructuralPartialEq.html) for [InsertRecordsJsonRequest](https://docs.kinetica.com/content/api/rust/json_records/struct.InsertRecordsJsonRequest.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.