Function libdata::column::register
[−]
pub fn register<C: Type>()
Register a type to be used as a column.
Some functions (eg. querying for the data by a user) need the type used as a column to be
registered, in addition to implementing the Type trait.
Also, if you want a type that is present on both local and remote endpoint, see the
register_endpoint.
#[derive(Clone, Debug, Deserialize, Eq, Ord, Serialize, PartialEq, PartialOrd)] struct SomeColumn(String); impl Type for SomeColumn { fn name() -> String { "some-column".to_owned() } } column::register::<SomeColumn>();