Struct dbkit_engine::schema::Schema
[−]
[src]
pub struct Schema {
// some fields omitted
}Describes the attributes and organization of data
Methods
impl Schema[src]
fn from_slice(attrs: &[Attribute]) -> Result<Schema, DBError>
fn from_vec(attrs: Vec<Attribute>) -> Result<Schema, DBError>
fn from_attr(attr: Attribute) -> Schema
Create a single Attribute schema from an external attribute
fn make_one_attr<S: Into<String>>(name: S, nullable: bool, dtype: Type) -> Schema
Create a single Attribute schema
fn count(&self) -> usize
fn exists(&self, name: &str) -> Option<usize>
fn exists_ok(&self, name: &str) -> Result<usize, DBError>
fn get(&self, pos: usize) -> Result<&Attribute, DBError>
fn find(&self, name: &str) -> Result<&Attribute, DBError>
fn iter(&self) -> AttributeIter
Trait Implementations
impl Default for Schema[src]
impl Clone for Schema[src]
fn clone(&self) -> Schema
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0
Performs copy-assignment from source. Read more