Struct hdbconnect_impl::FieldMetadata
source · pub struct FieldMetadata { /* private fields */ }Expand description
Metadata of a field in a ResultSet.
Implementations§
source§impl FieldMetadata
impl FieldMetadata
sourcepub fn schemaname(&self) -> &str
pub fn schemaname(&self) -> &str
Database schema of the field.
sourcepub fn columnname(&self) -> &str
pub fn columnname(&self) -> &str
Column name.
sourcepub fn displayname(&self) -> &str
pub fn displayname(&self) -> &str
Display name of the column.
sourcepub fn is_nullable(&self) -> bool
pub fn is_nullable(&self) -> bool
True if column can contain NULL values.
sourcepub fn scale(&self) -> i16
pub fn scale(&self) -> i16
The scale of the value.
Is 0 for all types where a scale does not make sense.
sourcepub fn has_default(&self) -> bool
pub fn has_default(&self) -> bool
Returns true if the column has a default value.
sourcepub fn is_read_only(&self) -> bool
pub fn is_read_only(&self) -> bool
Returns true if the column is read-only.
sourcepub fn is_auto_incremented(&self) -> bool
pub fn is_auto_incremented(&self) -> bool
Returns true if the column is auto-incremented.
sourcepub fn is_array_type(&self) -> bool
pub fn is_array_type(&self) -> bool
Returns true if the column is of array type.
Trait Implementations§
source§impl Clone for FieldMetadata
impl Clone for FieldMetadata
source§fn clone(&self) -> FieldMetadata
fn clone(&self) -> FieldMetadata
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl RefUnwindSafe for FieldMetadata
impl Send for FieldMetadata
impl Sync for FieldMetadata
impl Unpin for FieldMetadata
impl UnwindSafe for FieldMetadata
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