pub trait IntoOptField {
    // Required method
    fn into_opt_field(self, name: impl Into<String>) -> Field;
}
Expand description

Indicates that a Field of optional values can be created from this type.

Required Methods§

source

fn into_opt_field(self, name: impl Into<String>) -> Field

Create a Field from self, with None values marked as null.

Object Safety§

This trait is not object safe.

Implementors§

source§

impl<T, U, V> IntoOptField for T
where T: IntoIterator<Item = Option<U>>, U: IntoFieldType<ElementType = V>, V: FieldType, V::Array: Array + FromIterator<Option<V>> + 'static,