pub trait Child:
Sized
+ Send
+ Sync
+ 'static {
const TABLE: ChildTable;
// Required methods
fn id(&self) -> Uuid;
fn encode(&self, out: &mut Vec<SqlValue>);
fn decode(id: Uuid, row: &mut dyn ColumnReader) -> Result<Self>;
// Provided method
fn refuse_unlisted_moves(&self, loaded: &mut dyn ColumnReader) -> Result<()> { ... }
}Required Associated Constants§
const TABLE: ChildTable
Required Methods§
fn id(&self) -> Uuid
fn encode(&self, out: &mut Vec<SqlValue>)
fn decode(id: Uuid, row: &mut dyn ColumnReader) -> Result<Self>
Provided Methods§
fn refuse_unlisted_moves(&self, loaded: &mut dyn ColumnReader) -> Result<()>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".