Skip to content

Commit

Permalink
docs: describe IngestResult struct and fields
Browse files Browse the repository at this point in the history
  • Loading branch information
ctron committed Jul 11, 2024
1 parent df55ad3 commit b941d7e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions modules/ingestor/src/model.rs
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
use trustify_common::id::Id;

/// The result of the ingestion process
#[derive(Clone, Debug, serde::Deserialize, serde::Serialize)]
pub struct IngestResult {
/// The internal ID of the document
pub id: Id,
/// The ID declared by the document
pub document_id: String,
/// Warnings that occurred during the import process
#[serde(default, skip_serializing_if = "Vec::is_empty")]
pub warnings: Vec<String>,
}

0 comments on commit b941d7e

Please sign in to comment.