> ## 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.

# GetRecordsJsonResponse

> GetRecordsJsonResponse — 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#L79-L83)&#x20;

<pre>`pub struct GetRecordsJsonResponse { /* private fields */ }`</pre>

The records `/get/records/json` returned.

## Implementations

[Source](https://github.com/kineticadb/kinetica-api-rust/blob/master/crates/gpudb-api/src/json_records.rs#L85-L106)
impl [GetRecordsJsonResponse](https://docs.kinetica.com/content/api/rust/json_records/struct.GetRecordsJsonResponse.md)

[Source](https://github.com/kineticadb/kinetica-api-rust/blob/master/crates/gpudb-api/src/json_records.rs#L88-L90)
pub fn [new](#method.new)( total\_records: [i32](https://doc.rust-lang.org/1.98.1/std/primitive.i32.html), has\_more\_records: [bool](https://doc.rust-lang.org/1.98.1/std/primitive.bool.html), json\_records: impl [Into](https://doc.rust-lang.org/1.98.1/core/convert/trait.Into.html)\<[String](https://doc.rust-lang.org/1.98.1/alloc/string/struct.String.html)>, ) -> Self

A response with every field given. [`Default`](https://doc.rust-lang.org/1.98.1/core/default/trait.Default.html) gives one with no records.

[Source](https://github.com/kineticadb/kinetica-api-rust/blob/master/crates/gpudb-api/src/json_records.rs#L93-L95)
pub fn [total\_records](#method.total_records)(\&self) -> [i32](https://doc.rust-lang.org/1.98.1/std/primitive.i32.html)

The total number of records the server reported.

[Source](https://github.com/kineticadb/kinetica-api-rust/blob/master/crates/gpudb-api/src/json_records.rs#L98-L100)
pub fn [has\_more\_records](#method.has_more_records)(\&self) -> [bool](https://doc.rust-lang.org/1.98.1/std/primitive.bool.html)

Whether more records are left past those returned.

[Source](https://github.com/kineticadb/kinetica-api-rust/blob/master/crates/gpudb-api/src/json_records.rs#L103-L105)
pub fn [json\_records](#method.json_records)(\&self) -> &[str](https://doc.rust-lang.org/1.98.1/std/primitive.str.html)

The records, as a JSON array.

## Trait Implementations

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

[Source](https://github.com/kineticadb/kinetica-api-rust/blob/master/crates/gpudb-api/src/json_records.rs#L78)
fn [clone](https://doc.rust-lang.org/1.98.1/core/clone/trait.Clone.html#tymethod.clone)(\&self) -> [GetRecordsJsonResponse](https://docs.kinetica.com/content/api/rust/json_records/struct.GetRecordsJsonResponse.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#L78)
impl [Debug](https://doc.rust-lang.org/1.98.1/core/fmt/trait.Debug.html) for [GetRecordsJsonResponse](https://docs.kinetica.com/content/api/rust/json_records/struct.GetRecordsJsonResponse.md)

[Source](https://github.com/kineticadb/kinetica-api-rust/blob/master/crates/gpudb-api/src/json_records.rs#L78)
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#L78)
impl [Default](https://doc.rust-lang.org/1.98.1/core/default/trait.Default.html) for [GetRecordsJsonResponse](https://docs.kinetica.com/content/api/rust/json_records/struct.GetRecordsJsonResponse.md)

[Source](https://github.com/kineticadb/kinetica-api-rust/blob/master/crates/gpudb-api/src/json_records.rs#L78)
fn [default](https://doc.rust-lang.org/1.98.1/core/default/trait.Default.html#tymethod.default)() -> [GetRecordsJsonResponse](https://docs.kinetica.com/content/api/rust/json_records/struct.GetRecordsJsonResponse.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#L108-L118)
impl [Display](https://doc.rust-lang.org/1.98.1/core/fmt/trait.Display.html) for [GetRecordsJsonResponse](https://docs.kinetica.com/content/api/rust/json_records/struct.GetRecordsJsonResponse.md)

[Source](https://github.com/kineticadb/kinetica-api-rust/blob/master/crates/gpudb-api/src/json_records.rs#L111-L117)
fn [fmt](https://doc.rust-lang.org/1.98.1/core/fmt/trait.Display.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)

`GetRecordsJsonResponse [total_records=<n>, has_more_records=<b>, json_records=<records>]`.

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

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

[Source](https://github.com/kineticadb/kinetica-api-rust/blob/master/crates/gpudb-api/src/json_records.rs#L78)
fn [eq](https://doc.rust-lang.org/1.98.1/core/cmp/trait.PartialEq.html#tymethod.eq)(\&self, other: &[GetRecordsJsonResponse](https://docs.kinetica.com/content/api/rust/json_records/struct.GetRecordsJsonResponse.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#L78)
impl [StructuralPartialEq](https://doc.rust-lang.org/1.98.1/core/marker/trait.StructuralPartialEq.html) for [GetRecordsJsonResponse](https://docs.kinetica.com/content/api/rust/json_records/struct.GetRecordsJsonResponse.md)


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