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

# IngestResult

> IngestResult — Kinetica Rust API

[gpudb\_api](https://docs.kinetica.com/content/api/rust/index.md)::<wbr />[filesystem](https://docs.kinetica.com/content/api/rust/filesystem/index.md)
[Source](https://github.com/kineticadb/kinetica-api-rust/blob/master/crates/gpudb-api/src/filesystem/ingest.rs#L709-L718)&#x20;

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

What an ingest did.

## Implementations

[Source](https://github.com/kineticadb/kinetica-api-rust/blob/master/crates/gpudb-api/src/filesystem/ingest.rs#L720-L819)
impl [IngestResult](https://docs.kinetica.com/content/api/rust/filesystem/struct.IngestResult.md)

[Source](https://github.com/kineticadb/kinetica-api-rust/blob/master/crates/gpudb-api/src/filesystem/ingest.rs#L721-L723)
pub fn [is\_successful](#method.is_successful)(\&self) -> [bool](https://doc.rust-lang.org/1.98.1/std/primitive.bool.html)

[Source](https://github.com/kineticadb/kinetica-api-rust/blob/master/crates/gpudb-api/src/filesystem/ingest.rs#L725-L727)
pub fn [error](#method.error)(\&self) -> [Option](https://doc.rust-lang.org/1.98.1/core/option/enum.Option.html)\<&[KineticaError](https://docs.kinetica.com/content/api/rust/errors/enum.KineticaError.md)>

[Source](https://github.com/kineticadb/kinetica-api-rust/blob/master/crates/gpudb-api/src/filesystem/ingest.rs#L729-L731)
pub fn [error\_message](#method.error_message)(\&self) -> [Option](https://doc.rust-lang.org/1.98.1/core/option/enum.Option.html)\<&[str](https://doc.rust-lang.org/1.98.1/std/primitive.str.html)>

[Source](https://github.com/kineticadb/kinetica-api-rust/blob/master/crates/gpudb-api/src/filesystem/ingest.rs#L733-L735)
pub fn [table\_name](#method.table_name)(\&self) -> [Option](https://doc.rust-lang.org/1.98.1/core/option/enum.Option.html)\<&[str](https://doc.rust-lang.org/1.98.1/std/primitive.str.html)>

[Source](https://github.com/kineticadb/kinetica-api-rust/blob/master/crates/gpudb-api/src/filesystem/ingest.rs#L738-L740)
pub fn [files](#method.files)(\&self) -> &\[[String](https://doc.rust-lang.org/1.98.1/alloc/string/struct.String.html)]

The files the server ingested.

[Source](https://github.com/kineticadb/kinetica-api-rust/blob/master/crates/gpudb-api/src/filesystem/ingest.rs#L742-L744)
pub fn [count\_inserted](#method.count_inserted)(\&self) -> [i64](https://doc.rust-lang.org/1.98.1/std/primitive.i64.html)

[Source](https://github.com/kineticadb/kinetica-api-rust/blob/master/crates/gpudb-api/src/filesystem/ingest.rs#L746-L748)
pub fn [count\_skipped](#method.count_skipped)(\&self) -> [i64](https://doc.rust-lang.org/1.98.1/std/primitive.i64.html)

[Source](https://github.com/kineticadb/kinetica-api-rust/blob/master/crates/gpudb-api/src/filesystem/ingest.rs#L750-L752)
pub fn [count\_updated](#method.count_updated)(\&self) -> [i64](https://doc.rust-lang.org/1.98.1/std/primitive.i64.html)

[Source](https://github.com/kineticadb/kinetica-api-rust/blob/master/crates/gpudb-api/src/filesystem/ingest.rs#L755-L758)
pub fn [set\_successful](#method.set_successful)(\&mut self, successful: [bool](https://doc.rust-lang.org/1.98.1/std/primitive.bool.html)) -> \&mut Self

Sets whether the ingest succeeded.

[Source](https://github.com/kineticadb/kinetica-api-rust/blob/master/crates/gpudb-api/src/filesystem/ingest.rs#L761-L764)
pub fn [set\_error](#method.set_error)(\&mut self, error: [Option](https://doc.rust-lang.org/1.98.1/core/option/enum.Option.html)\<[KineticaError](https://docs.kinetica.com/content/api/rust/errors/enum.KineticaError.md)>) -> \&mut Self

Sets the error the ingest failed with.

[Source](https://github.com/kineticadb/kinetica-api-rust/blob/master/crates/gpudb-api/src/filesystem/ingest.rs#L767-L770)
pub fn [set\_error\_message](#method.set_error_message)(\&mut self, error\_message: [Option](https://doc.rust-lang.org/1.98.1/core/option/enum.Option.html)\<[String](https://doc.rust-lang.org/1.98.1/alloc/string/struct.String.html)>) -> \&mut Self

Sets the message of the error the ingest failed with.

[Source](https://github.com/kineticadb/kinetica-api-rust/blob/master/crates/gpudb-api/src/filesystem/ingest.rs#L773-L776)
pub fn [set\_table\_name](#method.set_table_name)(\&mut self, table\_name: [Option](https://doc.rust-lang.org/1.98.1/core/option/enum.Option.html)\<[String](https://doc.rust-lang.org/1.98.1/alloc/string/struct.String.html)>) -> \&mut Self

Sets the name of the table ingested into.

[Source](https://github.com/kineticadb/kinetica-api-rust/blob/master/crates/gpudb-api/src/filesystem/ingest.rs#L779-L782)
pub fn [set\_files](#method.set_files)(\&mut self, files: [Vec](https://doc.rust-lang.org/1.98.1/alloc/vec/struct.Vec.html)\<[String](https://doc.rust-lang.org/1.98.1/alloc/string/struct.String.html)>) -> \&mut Self

Sets the files the server ingested.

[Source](https://github.com/kineticadb/kinetica-api-rust/blob/master/crates/gpudb-api/src/filesystem/ingest.rs#L785-L788)
pub fn [set\_count\_inserted](#method.set_count_inserted)(\&mut self, count: [i64](https://doc.rust-lang.org/1.98.1/std/primitive.i64.html)) -> \&mut Self

Sets the number of records inserted.

[Source](https://github.com/kineticadb/kinetica-api-rust/blob/master/crates/gpudb-api/src/filesystem/ingest.rs#L791-L794)
pub fn [set\_count\_skipped](#method.set_count_skipped)(\&mut self, count: [i64](https://doc.rust-lang.org/1.98.1/std/primitive.i64.html)) -> \&mut Self

Sets the number of records skipped.

[Source](https://github.com/kineticadb/kinetica-api-rust/blob/master/crates/gpudb-api/src/filesystem/ingest.rs#L797-L800)
pub fn [set\_count\_updated](#method.set_count_updated)(\&mut self, count: [i64](https://doc.rust-lang.org/1.98.1/std/primitive.i64.html)) -> \&mut Self

Sets the number of records updated.

## Trait Implementations

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

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

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

[Source](https://github.com/kineticadb/kinetica-api-rust/blob/master/crates/gpudb-api/src/filesystem/ingest.rs#L708)
fn [default](https://doc.rust-lang.org/1.98.1/core/default/trait.Default.html#tymethod.default)() -> [IngestResult](https://docs.kinetica.com/content/api/rust/filesystem/struct.IngestResult.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)


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