pub enum LogicalType {
Unknown,
Bool,
Int64,
Float64,
String,
Null,
List,
Map,
NodeRef,
RelRef,
Path,
Vector {
element_type: String,
dimension: Option<u32>,
},
}Expand description
Structured logical type for a plan column.
Replaces the legacy Option<String> advisory field in ColDef as of plan format 0.3.0.
Variants§
Implementations§
Source§impl LogicalType
impl LogicalType
Sourcepub fn from_legacy_str(s: &str) -> Self
pub fn from_legacy_str(s: &str) -> Self
Parse the legacy string representation used in pre-0.3 plans.
Sourcepub fn as_legacy_str(&self) -> Option<&str>
pub fn as_legacy_str(&self) -> Option<&str>
Serialize to the legacy string representation for cross-version compatibility.
Trait Implementations§
Source§impl Clone for LogicalType
impl Clone for LogicalType
Source§fn clone(&self) -> LogicalType
fn clone(&self) -> LogicalType
Returns a duplicate 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 moreSource§impl Debug for LogicalType
impl Debug for LogicalType
Source§impl Default for LogicalType
impl Default for LogicalType
Source§fn default() -> LogicalType
fn default() -> LogicalType
Returns the “default value” for a type. Read more
Source§impl PartialEq for LogicalType
impl PartialEq for LogicalType
impl Eq for LogicalType
impl StructuralPartialEq for LogicalType
Auto Trait Implementations§
impl Freeze for LogicalType
impl RefUnwindSafe for LogicalType
impl Send for LogicalType
impl Sync for LogicalType
impl Unpin for LogicalType
impl UnsafeUnpin for LogicalType
impl UnwindSafe for LogicalType
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