pub struct ProgramInfo {
pub dataflow: Option<Value>,
pub input_connectors: HashMap<String, InputEndpointConfig>,
pub main_rust: Option<String>,
pub output_connectors: HashMap<String, OutputEndpointConfig>,
pub schema: ProgramSchema,
pub udf_stubs: Option<String>,
}
Expand description
Program information is the output of the SQL compiler.
It includes information needed for Rust compilation (e.g., generated Rust code) as well as only for runtime (e.g., schema, input/output connectors).
JSON schema
{
"description": "Program information is the output of the SQL compiler.\n\nIt includes information needed for Rust compilation (e.g., generated Rust code)\nas well as only for runtime (e.g., schema, input/output connectors).",
"type": "object",
"required": [
"input_connectors",
"output_connectors",
"schema"
],
"properties": {
"dataflow": {
"description": "Dataflow graph of the program."
},
"input_connectors": {
"description": "Input connectors derived from the schema.",
"type": "object",
"additionalProperties": {
"$ref": "#/components/schemas/InputEndpointConfig"
}
},
"main_rust": {
"description": "Generated main program Rust code: main.rs",
"type": "string"
},
"output_connectors": {
"description": "Output connectors derived from the schema.",
"type": "object",
"additionalProperties": {
"$ref": "#/components/schemas/OutputEndpointConfig"
}
},
"schema": {
"$ref": "#/components/schemas/ProgramSchema"
},
"udf_stubs": {
"description": "Generated user defined function (UDF) stubs Rust code: stubs.rs",
"type": "string"
}
}
}
Fields§
§dataflow: Option<Value>
Dataflow graph of the program.
input_connectors: HashMap<String, InputEndpointConfig>
Input connectors derived from the schema.
main_rust: Option<String>
Generated main program Rust code: main.rs
output_connectors: HashMap<String, OutputEndpointConfig>
Output connectors derived from the schema.
schema: ProgramSchema
§udf_stubs: Option<String>
Generated user defined function (UDF) stubs Rust code: stubs.rs
Implementations§
Source§impl ProgramInfo
impl ProgramInfo
pub fn builder() -> ProgramInfo
Trait Implementations§
Source§impl Clone for ProgramInfo
impl Clone for ProgramInfo
Source§fn clone(&self) -> ProgramInfo
fn clone(&self) -> ProgramInfo
Returns a duplicate of the value. Read more
1.0.0 · 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 ProgramInfo
impl Debug for ProgramInfo
Source§impl<'de> Deserialize<'de> for ProgramInfo
impl<'de> Deserialize<'de> for ProgramInfo
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<&ProgramInfo> for ProgramInfo
impl From<&ProgramInfo> for ProgramInfo
Source§fn from(value: &ProgramInfo) -> Self
fn from(value: &ProgramInfo) -> Self
Converts to this type from the input type.
Source§impl From<ProgramInfo> for ProgramInfo
impl From<ProgramInfo> for ProgramInfo
Source§fn from(value: ProgramInfo) -> Self
fn from(value: ProgramInfo) -> Self
Converts to this type from the input type.
Source§impl Serialize for ProgramInfo
impl Serialize for ProgramInfo
Source§impl TryFrom<ProgramInfo> for ProgramInfo
impl TryFrom<ProgramInfo> for ProgramInfo
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: ProgramInfo) -> Result<Self, ConversionError>
fn try_from(value: ProgramInfo) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for ProgramInfo
impl RefUnwindSafe for ProgramInfo
impl Send for ProgramInfo
impl Sync for ProgramInfo
impl Unpin for ProgramInfo
impl UnwindSafe for ProgramInfo
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