pub struct Structure { /* private fields */ }Expand description
Structure of a SQL tuple.
Implementations§
Source§impl Structure
impl Structure
Sourcepub fn new(field_definitions: &[(&str, &str)]) -> Self
pub fn new(field_definitions: &[(&str, &str)]) -> Self
Create a new instance of Structure from a slice of tuples.
Sourcepub fn set_field(&mut self, name: &str, sql_type: &str) -> &mut Self
pub fn set_field(&mut self, name: &str, sql_type: &str) -> &mut Self
Set a field in the structure.
Sourcepub fn get_fields(&self) -> &Vec<StructureField>
pub fn get_fields(&self) -> &Vec<StructureField>
Get the fields of the structure.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Structure
impl RefUnwindSafe for Structure
impl Send for Structure
impl Sync for Structure
impl Unpin for Structure
impl UnsafeUnpin for Structure
impl UnwindSafe for Structure
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