Trait pgrx_sql_entity_graph::SqlGraphIdentifier

source ·
pub trait SqlGraphIdentifier {
    // Required methods
    fn dot_identifier(&self) -> String;
    fn rust_identifier(&self) -> String;
    fn file(&self) -> Option<&'static str>;
    fn line(&self) -> Option<u32>;
}
Expand description

Able to produce a GraphViz DOT format identifier.

Required Methods§

source

fn dot_identifier(&self) -> String

A dot style identifier for the entity.

Typically this is a ‘archetype’ prefix (eg fn or type) then result of std::module_path, core::any::type_name, or some combination of std::file and std::line.

source

fn rust_identifier(&self) -> String

A Rust identifier for the entity.

Typically this is the result of std::module_path, core::any::type_name, or some combination of std::file and std::line.

source

fn file(&self) -> Option<&'static str>

source

fn line(&self) -> Option<u32>

Implementors§