pub struct ValidateProgramRequest {
pub ir: Option<bool>,
pub program_code: String,
pub runtime_version: Option<String>,
}Expand description
Request body for the program validation endpoint.
JSON schema
{
"description": "Request body for the program validation endpoint.",
"type": "object",
"required": [
"program_code"
],
"properties": {
"ir": {
"description": "Return the program IR (dataflow) in the response. `false` by default;\nmost callers only need to know whether the program is valid.",
"type": "boolean"
},
"program_code": {
"description": "SQL program code to validate.",
"type": "string"
},
"runtime_version": {
"description": "Runtime version to compile with: a version tag (`vX.Y.Z`) or a\n40-character git SHA. If omitted, the platform's default runtime is used.",
"type": [
"string",
"null"
]
}
}
}Fields§
§ir: Option<bool>Return the program IR (dataflow) in the response. false by default;
most callers only need to know whether the program is valid.
program_code: StringSQL program code to validate.
runtime_version: Option<String>Runtime version to compile with: a version tag (vX.Y.Z) or a
40-character git SHA. If omitted, the platform’s default runtime is used.
Implementations§
Source§impl ValidateProgramRequest
impl ValidateProgramRequest
pub fn builder() -> ValidateProgramRequest
Trait Implementations§
Source§impl Clone for ValidateProgramRequest
impl Clone for ValidateProgramRequest
Source§fn clone(&self) -> ValidateProgramRequest
fn clone(&self) -> ValidateProgramRequest
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 ValidateProgramRequest
impl Debug for ValidateProgramRequest
Source§impl<'de> Deserialize<'de> for ValidateProgramRequest
impl<'de> Deserialize<'de> for ValidateProgramRequest
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<&ValidateProgramRequest> for ValidateProgramRequest
impl From<&ValidateProgramRequest> for ValidateProgramRequest
Source§fn from(value: &ValidateProgramRequest) -> Self
fn from(value: &ValidateProgramRequest) -> Self
Converts to this type from the input type.
Source§impl From<ValidateProgramRequest> for ValidateProgramRequest
impl From<ValidateProgramRequest> for ValidateProgramRequest
Source§fn from(value: ValidateProgramRequest) -> Self
fn from(value: ValidateProgramRequest) -> Self
Converts to this type from the input type.
Source§impl Serialize for ValidateProgramRequest
impl Serialize for ValidateProgramRequest
Source§impl TryFrom<ValidateProgramRequest> for ValidateProgramRequest
impl TryFrom<ValidateProgramRequest> for ValidateProgramRequest
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: ValidateProgramRequest) -> Result<Self, ConversionError>
fn try_from(value: ValidateProgramRequest) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for ValidateProgramRequest
impl RefUnwindSafe for ValidateProgramRequest
impl Send for ValidateProgramRequest
impl Sync for ValidateProgramRequest
impl Unpin for ValidateProgramRequest
impl UnsafeUnpin for ValidateProgramRequest
impl UnwindSafe for ValidateProgramRequest
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