reflect attack automatically
This commit is contained in:
@@ -122,7 +122,7 @@ fn search(index: i64) -> SearchResult {
|
||||
{
|
||||
let row_result = PokemonDataLearnset {
|
||||
id: row.read::<i64, _>("id"),
|
||||
learset_id: row.read::<i64, _>("learnset_id"),
|
||||
learnset_id: row.read::<i64, _>("learnset_id"),
|
||||
name: row.read::<&str, _>("name").to_string(),
|
||||
types: serde_json::from_str(row.read::<&str, _>("types")).unwrap_or(vec![0]),
|
||||
power: row.read::<i64, _>("power"),
|
||||
|
||||
@@ -19,7 +19,7 @@ pub struct SearchResult {
|
||||
#[derive(Serialize, Deserialize, Debug, Clone)]
|
||||
pub struct PokemonDataLearnset {
|
||||
pub id: i64,
|
||||
pub learset_id: i64,
|
||||
pub learnset_id: i64,
|
||||
pub name: String,
|
||||
pub types: Vec<i64>,
|
||||
pub power: i64,
|
||||
|
||||
Reference in New Issue
Block a user