rust-postgres/postgres-shared/src/stmt.rs

25 lines
369 B
Rust
Raw Normal View History

2016-12-26 21:29:30 +00:00
use types::Type;
pub struct Column {
name: String,
type_: Type,
}
impl Column {
#[doc(hidden)]
pub fn new(name: String, type_: Type) -> Column {
Column {
name: name,
type_: type_,
}
}
pub fn name(&self) -> &str {
&self.name
}
pub fn type_(&self) -> &Type {
&self.type_
}
}