MCPcopy Create free account
hub / github.com/SeaQL/sea-orm / col_info

Method col_info

sea-orm-codegen/src/entity/column.rs:231–243  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

229 }
230
231 fn col_info(&self) -> String {
232 let mut info = String::new();
233 if self.auto_increment {
234 write!(&mut info, ", auto_increment").unwrap();
235 }
236 if self.not_null {
237 write!(&mut info, ", not_null").unwrap();
238 }
239 if self.unique {
240 write!(&mut info, ", unique").unwrap();
241 }
242 info
243 }
244
245 pub fn get_serde_attribute(
246 &self,

Callers 1

get_infoMethod · 0.80

Calls 2

unwrapMethod · 0.80
newFunction · 0.50

Tested by

no test coverage detected