SQLIndexInfo

Trait SQLIndexInfo 

Source
pub trait SQLIndexInfo:
    Any
    + Send
    + Sync {
    // Required methods
    fn table(&self) -> &dyn SQLTableInfo;
    fn name(&self) -> &'static str;

    // Provided method
    fn is_unique(&self) -> bool { ... }
}

Required Methods§

Source

fn table(&self) -> &dyn SQLTableInfo

Source

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

The name of this index (for DROP INDEX statements)

Provided Methods§

Source

fn is_unique(&self) -> bool

Whether this is a unique index

Trait Implementations§

Source§

impl Debug for dyn SQLIndexInfo

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Implementors§