[−][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 Field
pub fn new(name: &str, data_type: DataType, nullable: bool) -> Self
[src]
pub fn new(name: &str, data_type: DataType, nullable: bool) -> Self
Creates a new field
pub fn name(&self) -> &String
[src]
pub fn name(&self) -> &String
Returns an immutable reference to the Field
's name
pub fn data_type(&self) -> &DataType
[src]
pub fn data_type(&self) -> &DataType
Returns an immutable reference to the Field
's data-type
pub fn is_nullable(&self) -> bool
[src]
pub fn is_nullable(&self) -> bool
Indicates 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) -> Value
Generate a JSON representation of the Field
pub fn to_string(&self) -> String
[src]
pub fn to_string(&self) -> String
Converts to a String
representation of the the Field
Trait Implementations
impl Eq for Field
[src]
impl Eq for Field
impl PartialEq<Field> for Field
[src]
impl PartialEq<Field> for Field
impl Clone for Field
[src]
impl Clone for Field
fn clone(&self) -> Field
[src]
fn clone(&self) -> Field
fn 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 Field
impl Display for Field
[src]
impl Display for Field
impl<'de> Deserialize<'de> for Field
[src]
impl<'de> Deserialize<'de> for Field
fn 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 Field
Auto 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 T
impl<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) -> TypeId
impl<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 T
impl<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>,