pub struct DataType { /* private fields */ }Expand description
ISO 23387 DataTypeType.
Implementations§
Source§impl DataType
impl DataType
pub fn new(name: Option<DataTypeName>) -> Self
pub const fn name(&self) -> Option<&DataTypeName>
pub fn constraints(&self) -> &[DataTypeConstraint]
pub fn data_formats(&self) -> &[String]
pub fn possible_values(&self) -> &[ValueList]
pub fn add_constraint(&mut self, value: DataTypeConstraint)
pub fn add_data_format(&mut self, value: impl Into<String>)
pub fn add_possible_values(&mut self, value: ValueList)
Trait Implementations§
impl Eq for DataType
impl StructuralPartialEq for DataType
Auto Trait Implementations§
impl Freeze for DataType
impl RefUnwindSafe for DataType
impl Send for DataType
impl Sync for DataType
impl Unpin for DataType
impl UnsafeUnpin for DataType
impl UnwindSafe for DataType
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