pub struct CompilationData {
pub tables: HashMap<String, TableData>,
pub default_drivers: Vec<String>,
}Fields§
§tables: HashMap<String, TableData>Key - table id, generated by build macro, put in #[sql(unique_id = “…”)] attribute on struct
default_drivers: Vec<String>Implementations§
Source§impl CompilationData
impl CompilationData
pub fn data_location() -> Result<PathBuf>
pub fn load_in_macro() -> Result<CompilationData>
pub fn generate_unique_id(&self) -> String
pub fn is_duplicate_table_name( &self, current_unique_id: &str, table_name: &str, ) -> Result<bool>
Trait Implementations§
Source§impl Debug for CompilationData
impl Debug for CompilationData
Source§impl<'de> Deserialize<'de> for CompilationData
impl<'de> Deserialize<'de> for CompilationData
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for CompilationData
impl RefUnwindSafe for CompilationData
impl Send for CompilationData
impl Sync for CompilationData
impl Unpin for CompilationData
impl UnwindSafe for CompilationData
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more