A11 (C++ runtime)
Native C++ implementation of the A11 streaming action runtime
Loading...
Searching...
No Matches
a11::flow::DtoPlan Struct Reference

One compiled struct: a shape a port may be typed with. More...

#include <cpp/a11/flow/plan.h>

Public Member Functions

const FieldPlan *absl_nullable Field (std::string_view field_name) const
 The field of this name, or nullptr.
 
std::vector< std::string > FieldNames () const
 Every field name, in declaration order, for a message that lists them.
 

Public Attributes

std::string name
 
std::string description
 
std::vector< FieldPlan > fields
 
bool binary = false
 Whether the shape holds bytes anywhere in it, directly or through another shape it names.
 
syntax::Location location
 

Detailed Description

One compiled struct: a shape a port may be typed with.

Member Function Documentation

◆ Field()

const FieldPlan *absl_nullable a11::flow::DtoPlan::Field ( std::string_view  field_name) const

The field of this name, or nullptr.

◆ FieldNames()

std::vector< std::string > a11::flow::DtoPlan::FieldNames ( ) const

Every field name, in declaration order, for a message that lists them.

Member Data Documentation

◆ binary

bool a11::flow::DtoPlan::binary = false

Whether the shape holds bytes anywhere in it, directly or through another shape it names.

Worked out once, at resolution, because it is what decides whether | json on a value of this shape can mean anything – and working it out on demand would mean walking a graph of shapes that may refer to each other.

◆ description

std::string a11::flow::DtoPlan::description

◆ fields

std::vector<FieldPlan> a11::flow::DtoPlan::fields

◆ location

syntax::Location a11::flow::DtoPlan::location

◆ name

std::string a11::flow::DtoPlan::name

The documentation for this struct was generated from the following files: