Skip to main content

IgnisObject

Trait IgnisObject 

Source
pub trait IgnisObject: Send + Sync {
    // Required methods
    fn name(&self) -> &str;
    fn schema(&self) -> Option<&str>;
    fn ddl(&self) -> &str;
    fn object_type(&self) -> &str;
}
Expand description

Core trait that all Ignis objects must implement

Required Methods§

Source

fn name(&self) -> &str

Get the name of this object

Source

fn schema(&self) -> Option<&str>

Get the schema this object belongs to (if any)

Source

fn ddl(&self) -> &str

Get the DDL for creating this object

Source

fn object_type(&self) -> &str

Get the type of this object

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§