[−][src]Trait rbatis::crud::Id
fetch id value
for example: impl Id for BizActivity { type IdType = String;
fn get_id(&self) -> Option<Self::IdType> { self.id.clone() } }
let vec = vec![BizActivity { id: Some("12312".to_string()) }]; let ids = vec.to_ids(); println!("{:?}", ids);