pub struct IngestionResponse {
pub success: bool,
pub progress_id: Option<String>,
pub schema_used: Option<String>,
pub new_schema_created: bool,
pub mutations_generated: usize,
pub mutations_executed: usize,
pub errors: Vec<String>,
}Expand description
Response from the ingestion process
Fields§
§success: boolWhether the ingestion was successful
progress_id: Option<String>Progress ID for tracking the ingestion process
schema_used: Option<String>Name of the schema used (existing or newly created)
new_schema_created: boolWhether a new schema was created
mutations_generated: usizeNumber of mutations generated
mutations_executed: usizeNumber of mutations successfully executed
errors: Vec<String>Any errors that occurred during processing
Implementations§
Source§impl IngestionResponse
impl IngestionResponse
Sourcepub fn success(
schema_used: String,
new_schema_created: bool,
mutations_generated: usize,
mutations_executed: usize,
) -> Self
pub fn success( schema_used: String, new_schema_created: bool, mutations_generated: usize, mutations_executed: usize, ) -> Self
Create a successful ingestion response
Trait Implementations§
Source§impl Debug for IngestionResponse
impl Debug for IngestionResponse
Source§impl<'de> Deserialize<'de> for IngestionResponse
impl<'de> Deserialize<'de> for IngestionResponse
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for IngestionResponse
impl Serialize for IngestionResponse
Auto Trait Implementations§
impl Freeze for IngestionResponse
impl RefUnwindSafe for IngestionResponse
impl Send for IngestionResponse
impl Sync for IngestionResponse
impl Unpin for IngestionResponse
impl UnwindSafe for IngestionResponse
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreCreates a shared type from an unshared type.