pub struct ArrayDataType {
pub element_type: Box<DataType>,
}Expand description
Array type containing elements of another type.
Supported by: PostgreSQL, ClickHouse, Snowflake (ARRAY), Databricks (ARRAY).
Not directly supported by SQL Server.
§Example
use razeri_plugin_contract::{DataType, data_type::ArrayDataType};
let int_array = ArrayDataType::new(DataType::int());
assert_eq!(*int_array.element_type, DataType::int());
let _str_array = ArrayDataType::new(DataType::varchar(100));Fields§
§element_type: Box<DataType>The data type of array elements.
Implementations§
Source§impl ArrayDataType
impl ArrayDataType
Trait Implementations§
Source§impl Clone for ArrayDataType
impl Clone for ArrayDataType
Source§fn clone(&self) -> ArrayDataType
fn clone(&self) -> ArrayDataType
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 ArrayDataType
impl Debug for ArrayDataType
impl Eq for ArrayDataType
Source§impl PartialEq for ArrayDataType
impl PartialEq for ArrayDataType
impl StructuralPartialEq for ArrayDataType
Auto Trait Implementations§
impl Freeze for ArrayDataType
impl RefUnwindSafe for ArrayDataType
impl Send for ArrayDataType
impl Sync for ArrayDataType
impl Unpin for ArrayDataType
impl UnsafeUnpin for ArrayDataType
impl UnwindSafe for ArrayDataType
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