pub struct PropertyDescriptor {
pub name: String,
pub data_type: DataType,
pub nullable: bool,
pub column_name: String,
pub is_id: bool,
pub is_version: bool,
pub max_length: Option<u32>,
pub numeric_precision: Option<u32>,
pub numeric_scale: Option<u32>,
}Fields§
§name: String§data_type: DataType§nullable: bool§column_name: String§is_id: bool§is_version: bool§max_length: Option<u32>§numeric_precision: Option<u32>§numeric_scale: Option<u32>Implementations§
Source§impl PropertyDescriptor
impl PropertyDescriptor
pub fn new(name: impl Into<String>, data_type: DataType) -> Self
pub fn column_name(self, column_name: impl Into<String>) -> Self
pub fn not_null(self) -> Self
pub fn id(self) -> Self
pub fn version(self) -> Self
pub fn max_length(self, max_length: u32) -> Self
pub fn numeric_precision(self, precision: u32) -> Self
pub fn numeric_scale(self, scale: u32) -> Self
Trait Implementations§
Source§impl Clone for PropertyDescriptor
impl Clone for PropertyDescriptor
Source§fn clone(&self) -> PropertyDescriptor
fn clone(&self) -> PropertyDescriptor
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PropertyDescriptor
impl Debug for PropertyDescriptor
impl Eq for PropertyDescriptor
Source§impl PartialEq for PropertyDescriptor
impl PartialEq for PropertyDescriptor
impl StructuralPartialEq for PropertyDescriptor
Auto Trait Implementations§
impl Freeze for PropertyDescriptor
impl RefUnwindSafe for PropertyDescriptor
impl Send for PropertyDescriptor
impl Sync for PropertyDescriptor
impl Unpin for PropertyDescriptor
impl UnsafeUnpin for PropertyDescriptor
impl UnwindSafe for PropertyDescriptor
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