Trait pgx_utils::sql_entity_graph::SqlGraphIdentifier
source · [−]pub trait SqlGraphIdentifier {
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
fn dot_identifier(&self) -> String
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.
fn rust_identifier(&self) -> String
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.