Struct ella_engine::table::Column
source · pub struct Column {
pub name: String,
pub data_type: TensorType,
pub row_shape: Option<Dyn>,
pub required: bool,
}Fields§
§name: String§data_type: TensorType§row_shape: Option<Dyn>§required: boolImplementations§
source§impl Column
impl Column
pub fn builder(name: impl Into<String>, data_type: TensorType) -> ColumnBuilder
pub fn new(name: impl Into<String>, data_type: TensorType) -> Self
Trait Implementations§
source§impl<'de> Deserialize<'de> for Column
impl<'de> Deserialize<'de> for Column
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
source§impl<S: Into<String>> From<(S, TensorType)> for Column
impl<S: Into<String>> From<(S, TensorType)> for Column
source§fn from((name, dtype): (S, TensorType)) -> Self
fn from((name, dtype): (S, TensorType)) -> Self
Converts to this type from the input type.
source§impl From<ColumnBuilder> for Column
impl From<ColumnBuilder> for Column
source§fn from(value: ColumnBuilder) -> Self
fn from(value: ColumnBuilder) -> Self
Converts to this type from the input type.
source§impl PartialEq<Column> for Column
impl PartialEq<Column> for Column
impl Eq for Column
impl StructuralEq for Column
impl StructuralPartialEq for Column
Auto Trait Implementations§
impl RefUnwindSafe for Column
impl Send for Column
impl Sync for Column
impl Unpin for Column
impl UnwindSafe for Column
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
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.