1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
//! Response struct for the Upsert Catalog Object API
use serde::Deserialize;
use super::{errors::Error, CatalogIdMapping, CatalogObject};
/// This is a model struct for UpsertCatalogObjectResponse type.
#[derive(Clone, Debug, Default, Deserialize, Eq, PartialEq)]
pub struct UpsertCatalogObjectResponse {
/// Any errors that occurred during the request.
pub errors: Option<Vec<Error>>,
/// The successfully created or updated CatalogObject.
pub catalog_object: Option<CatalogObject>,
/// The mapping between client and server IDs for this upsert.
pub id_mappings: Option<Vec<CatalogIdMapping>>,
}