1 2 3 4 5 6 7 8 9 10 11
use crate::model::field; use crate::traits::named::Named; pub trait Indexable: Named { fn index(&self) -> Option<&field::Index>; } pub trait SetIndex: Named { fn set_index(&self, index: field::Index); }