pub trait Build {
// Required method
fn to_statement(&self) -> Statement;
// Provided methods
fn build(&self) -> (String, Vec<Value>) { ... }
fn to_string_inlined(&self) -> String { ... }
}Expand description
Anything that renders to a Statement.
Required Methods§
Sourcefn to_statement(&self) -> Statement
fn to_statement(&self) -> Statement
Renders into a Statement.
Provided Methods§
Sourcefn to_string_inlined(&self) -> String
fn to_string_inlined(&self) -> String
Renders with literals inlined, for logs and tests only.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".