Skip to main content

AnyBuilder

Trait AnyBuilder 

Source
pub trait AnyBuilder: Send + Sync {
    // Required methods
    fn build(&mut self) -> Result<Statement>;
    fn clone_box(&self) -> Box<dyn AnyBuilder>;
    fn php_class(&self) -> &'static str;
    fn as_any(&self) -> &dyn Any;
}
Expand description

Any builder, as other builders and schemas take one (a subquery, a union member, a view’s query).

PHP: the abstract Utopia\Query\Builder as a parameter type.

Required Methods§

Source

fn build(&mut self) -> Result<Statement>

Compiles the builder’s statement.

Source

fn clone_box(&self) -> Box<dyn AnyBuilder>

A boxed copy.

Source

fn php_class(&self) -> &'static str

The PHP class of the builder (Utopia\Query\Builder\MySQL).

Source

fn as_any(&self) -> &dyn Any

The builder as Any, to reach its concrete type.

Trait Implementations§

Source§

impl Clone for Box<dyn AnyBuilder>

Source§

fn clone(&self) -> Self

1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§