pub struct FieldInfo(/* private fields */);Expand description
Information about a table field
Implementations§
Source§impl FieldInfo
impl FieldInfo
Sourcepub fn name(&self) -> &str
pub fn name(&self) -> &str
Returns the name of the field
If the field name cannot be represented as UTF-8, returns “<invalid field name>”
Sourcepub fn field_type(&self) -> Result<FieldTypeId, u32>
pub fn field_type(&self) -> Result<FieldTypeId, u32>
Returns the type of the field
If the type cannot be represented as a FieldTypeId, returns an error
with the raw field type value.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for FieldInfo
impl RefUnwindSafe for FieldInfo
impl !Send for FieldInfo
impl !Sync for FieldInfo
impl Unpin for FieldInfo
impl UnsafeUnpin for FieldInfo
impl UnwindSafe for FieldInfo
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