pub struct PropType {
pub scalar: ScalarType,
pub nullable: bool,
pub list: bool,
pub enum_values: Option<Vec<String>>,
}Fields§
§scalar: ScalarType§nullable: bool§list: bool§enum_values: Option<Vec<String>>Implementations§
Source§impl PropType
impl PropType
pub fn from_param_type_name(s: &str, nullable: bool) -> Option<Self>
pub fn scalar(scalar: ScalarType, nullable: bool) -> Self
pub fn list_of(scalar: ScalarType, nullable: bool) -> Self
pub fn enum_type(values: Vec<String>, nullable: bool) -> Self
pub fn is_enum(&self) -> bool
pub fn to_arrow(&self) -> DataType
pub fn display_name(&self) -> String
Trait Implementations§
Source§impl<'de> Deserialize<'de> for PropType
impl<'de> Deserialize<'de> for PropType
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for PropType
impl StructuralPartialEq for PropType
Auto Trait Implementations§
impl Freeze for PropType
impl RefUnwindSafe for PropType
impl Send for PropType
impl Sync for PropType
impl Unpin for PropType
impl UnsafeUnpin for PropType
impl UnwindSafe for PropType
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