pub struct TablesConfig {
pub top_comments: IndexMap<FlexStr, FlexStr>,
pub table_comments: HashMap<FlexStr, FlexStr>,
}Expand description
Configuration file format for adding comments to tables
Fields§
§top_comments: IndexMap<FlexStr, FlexStr>Top level comments
table_comments: HashMap<FlexStr, FlexStr>Per table comments (table -> comment)
Implementations§
Source§impl TablesConfig
impl TablesConfig
Sourcepub fn try_load_config(r: impl Read) -> Result<Self>
pub fn try_load_config(r: impl Read) -> Result<Self>
Try to load the config from the given reader
Trait Implementations§
Source§impl Default for TablesConfig
impl Default for TablesConfig
Source§fn default() -> TablesConfig
fn default() -> TablesConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for TablesConfig
impl<'de> Deserialize<'de> for TablesConfig
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 TablesConfig
impl RefUnwindSafe for TablesConfig
impl !Send for TablesConfig
impl !Sync for TablesConfig
impl Unpin for TablesConfig
impl UnwindSafe for TablesConfig
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