use crate::sql_entity_graph::{SqlGraphIdentifier, UsedTypeEntity};
#[derive(Debug, Clone, Hash, PartialEq, Eq, PartialOrd, Ord)]
pub struct PgExternArgumentEntity {
pub pattern: &'static str,
pub used_ty: UsedTypeEntity,
}
impl SqlGraphIdentifier for PgExternArgumentEntity {
fn dot_identifier(&self) -> String {
format!("arg {}", self.rust_identifier())
}
fn rust_identifier(&self) -> String {
self.used_ty.full_path.to_string()
}
fn file(&self) -> Option<&'static str> {
None
}
fn line(&self) -> Option<u32> {
None
}
}