pub struct Table { /* private fields */ }
Implementations§
source§impl Table
impl Table
pub fn new( ident: Identifier, number: FieldNumber, key: Vec<Key>, fields: Vec<FieldDefinition> ) -> Result<Self, Error>
pub fn parse<S: AsRef<str>>(table: S) -> Result<Self, Error>
pub fn lookup_field(&self, ident: &Identifier) -> Result<FieldDefinition, Error>
pub fn to_protoql(&self) -> String
pub fn to_protobuf(&self) -> String
pub fn describe_keys(&self) -> Vec<String>
Trait Implementations§
source§impl PartialEq for Table
impl PartialEq for Table
impl Eq for Table
impl StructuralPartialEq for Table
Auto Trait Implementations§
impl RefUnwindSafe for Table
impl Send for Table
impl Sync for Table
impl Unpin for Table
impl UnwindSafe for Table
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more