pub type PieceUpdateResult = Result<PieceUpdate, ApiPieceOpError>;