Trait IntoField

Source
pub trait IntoField: Sealed {
    // Required method
    fn into_field(self, default_name: &str) -> Field;
}
Expand description

Converts a type into a Field. Implementors are DataType and Field.

Required Methods§

Source

fn into_field(self, default_name: &str) -> Field

Converts into a Field.

  • For Field, it is returned as is.
  • For DataType, a new Field is created with the given default_name.

Implementations on Foreign Types§

Source§

impl IntoField for DataType

Source§

fn into_field(self, default_name: &str) -> Field

Source§

impl IntoField for Field

Source§

fn into_field(self, _default_name: &str) -> Field

Implementors§