pub enum ValidateProgramResponse {
Success {
program_info: Value,
},
SqlError {
info: SqlCompilationInfo,
},
SystemError {
error: String,
},
}Expand description
Outcome of validating a SQL program.
JSON schema
{
"description": "Outcome of validating a SQL program.",
"oneOf": [
{
"type": "object",
"required": [
"Success"
],
"properties": {
"Success": {
"description": "Validation succeeded; `program_info` is the serialized `ProgramInfo` with\nthe Rust artifacts omitted (and the dataflow omitted unless `ir` was set).",
"type": "object",
"required": [
"program_info"
],
"properties": {
"program_info": {}
}
}
}
},
{
"type": "object",
"required": [
"SqlError"
],
"properties": {
"SqlError": {
"description": "The SQL program failed to compile.",
"type": "object",
"required": [
"info"
],
"properties": {
"info": {
"$ref": "#/components/schemas/SqlCompilationInfo"
}
}
}
}
},
{
"type": "object",
"required": [
"SystemError"
],
"properties": {
"SystemError": {
"description": "A system error prevented validation (e.g., the runtime-specific SQL\ncompiler could not be downloaded).",
"type": "object",
"required": [
"error"
],
"properties": {
"error": {
"type": "string"
}
}
}
}
}
]
}Variants§
Trait Implementations§
Source§impl Clone for ValidateProgramResponse
impl Clone for ValidateProgramResponse
Source§fn clone(&self) -> ValidateProgramResponse
fn clone(&self) -> ValidateProgramResponse
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ValidateProgramResponse
impl Debug for ValidateProgramResponse
Source§impl<'de> Deserialize<'de> for ValidateProgramResponse
impl<'de> Deserialize<'de> for ValidateProgramResponse
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 From<&ValidateProgramResponse> for ValidateProgramResponse
impl From<&ValidateProgramResponse> for ValidateProgramResponse
Source§fn from(value: &ValidateProgramResponse) -> Self
fn from(value: &ValidateProgramResponse) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ValidateProgramResponse
impl RefUnwindSafe for ValidateProgramResponse
impl Send for ValidateProgramResponse
impl Sync for ValidateProgramResponse
impl Unpin for ValidateProgramResponse
impl UnsafeUnpin for ValidateProgramResponse
impl UnwindSafe for ValidateProgramResponse
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