Struct r2d2_mysql::Row
[−]
[src]
pub struct Row { pub data: Vec<Value>, pub rowset: Rc<RowSet>, }
one Row data in RowSet
Fields
data | |
rowset |
Methods
impl Row
fn get_opt<I, T>(&self, idx: I) -> Option<T> where I: RowIndex + Debug + Clone, T: FromValue
get Option value from row
fn get<I, T>(&self, idx: I) -> T where I: RowIndex + Debug + Clone, T: FromValue
get value from row: let name : String = row.get(0); or let name : String = row.get("current_user"); will panic if idx does not exist