|
A11 (C++ runtime)
Native C++ implementation of the A11 streaming action runtime
|
Construct a struct using the language's existing shape descriptor. More...
#include <cpp/a11/flow/document.h>
Public Member Functions | |
| StructBuilder (std::string name) | |
| StructBuilder (DtoPlan shape) | |
| DtoPlan & | shape () |
| const DtoPlan & | shape () const |
| absl::Status | AddField (std::string name, syntax::TypeExpression type, bool required=false, std::optional< Expression > default_value={}, std::string description={}) |
| absl::StatusOr< std::string > | Emit () const |
Construct a struct using the language's existing shape descriptor.
|
inlineexplicit |
|
inlineexplicit |
| absl::Status a11::flow::StructBuilder::AddField | ( | std::string | name, |
| syntax::TypeExpression | type, | ||
| bool | required = false, |
||
| std::optional< Expression > | default_value = {}, |
||
| std::string | description = {} |
||
| ) |
| absl::StatusOr< std::string > a11::flow::StructBuilder::Emit | ( | ) | const |
|
inline |
|
inline |