[−][src]Struct arrow::datatypes::Field
Contains the meta-data for a single relative type.
The Schema object is an ordered collection of Field objects.
Methods
impl Field[src]
impl Fieldpub fn new(name: &str, data_type: DataType, nullable: bool) -> Self[src]
pub fn new(name: &str, data_type: DataType, nullable: bool) -> SelfCreates a new field
pub fn name(&self) -> &String[src]
pub fn name(&self) -> &StringReturns an immutable reference to the Field's name
pub fn data_type(&self) -> &DataType[src]
pub fn data_type(&self) -> &DataTypeReturns an immutable reference to the Field's data-type
pub fn is_nullable(&self) -> bool[src]
pub fn is_nullable(&self) -> boolIndicates whether this Field supports null values
pub fn from(json: &Value) -> Result<Self>[src]
pub fn from(json: &Value) -> Result<Self>Parse a Field definition from a JSON representation
pub fn to_json(&self) -> Value[src]
pub fn to_json(&self) -> ValueGenerate a JSON representation of the Field
pub fn to_string(&self) -> String[src]
pub fn to_string(&self) -> StringConverts to a String representation of the the Field
Trait Implementations
impl Eq for Field[src]
impl Eq for Fieldimpl PartialEq<Field> for Field[src]
impl PartialEq<Field> for Fieldimpl Clone for Field[src]
impl Clone for Fieldfn clone(&self) -> Field[src]
fn clone(&self) -> Fieldfn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)1.0.0
[src]Performs copy-assignment from source. Read more
impl Debug for Field[src]
impl Debug for Fieldimpl Display for Field[src]
impl Display for Fieldimpl<'de> Deserialize<'de> for Field[src]
impl<'de> Deserialize<'de> for Fieldfn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>, [src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>, impl Serialize for Field[src]
impl Serialize for FieldAuto Trait Implementations
Blanket Implementations
impl<T, U> Into for T where
U: From<T>, [src]
impl<T, U> Into for T where
U: From<T>, impl<T> From for T[src]
impl<T> From for Timpl<T> ToString for T where
T: Display + ?Sized, [src]
impl<T> ToString for T where
T: Display + ?Sized, impl<T> ToOwned for T where
T: Clone, [src]
impl<T> ToOwned for T where
T: Clone, impl<T, U> TryFrom for T where
T: From<U>, [src]
impl<T, U> TryFrom for T where
T: From<U>, type Error = !
🔬 This is a nightly-only experimental API. (
try_from)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>impl<T> Borrow for T where
T: ?Sized, [src]
impl<T> Borrow for T where
T: ?Sized, impl<T> Any for T where
T: 'static + ?Sized, [src]
impl<T> Any for T where
T: 'static + ?Sized, fn get_type_id(&self) -> TypeId[src]
fn get_type_id(&self) -> TypeIdimpl<T> BorrowMut for T where
T: ?Sized, [src]
impl<T> BorrowMut for T where
T: ?Sized, fn borrow_mut(&mut self) -> &mut T[src]
fn borrow_mut(&mut self) -> &mut Timpl<T, U> TryInto for T where
U: TryFrom<T>, [src]
impl<T, U> TryInto for T where
U: TryFrom<T>, type Error = <U as TryFrom<T>>::Error
🔬 This is a nightly-only experimental API. (
try_from)The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>impl<T> DeserializeOwned for T where
T: Deserialize<'de>, [src]
impl<T> DeserializeOwned for T where
T: Deserialize<'de>,