From ff48a0501f84be9a0388d41bfc91223c1f82972d Mon Sep 17 00:00:00 2001 From: Adrian Malacoda Date: Sun, 12 Mar 2017 17:33:12 -0500 Subject: [PATCH] make these fields public --- src/searchers/mtg.rs | 18 +++++++++--------- src/searchers/yugioh.rs | 20 ++++++++++---------- 2 files changed, 19 insertions(+), 19 deletions(-) diff --git a/src/searchers/mtg.rs b/src/searchers/mtg.rs index 39c2254..4860c14 100644 --- a/src/searchers/mtg.rs +++ b/src/searchers/mtg.rs @@ -21,15 +21,15 @@ const RETRY_WAIT_MILLIS: u64 = 500; #[derive(Debug)] pub struct MtgCard { - name: String, - cost: String, - typeline: String, - rules: String, - flavor: Option, - power: Option, - toughness: Option, - url: String, - image_url: String + pub name: String, + pub cost: String, + pub typeline: String, + pub rules: String, + pub flavor: Option, + pub power: Option, + pub toughness: Option, + pub url: String, + pub image_url: String } impl Link for MtgCard { diff --git a/src/searchers/yugioh.rs b/src/searchers/yugioh.rs index 87abd12..bb2d0cc 100644 --- a/src/searchers/yugioh.rs +++ b/src/searchers/yugioh.rs @@ -21,16 +21,16 @@ const RETRY_WAIT_MILLIS: u64 = 500; #[derive(Debug)] pub struct YugiohCard { - name: String, - card_type: String, - text: String, - subtype: Option, - family: Option, - atk: Option, - def: Option, - level: Option, - url: String, - image_url: String + pub name: String, + pub card_type: String, + pub text: String, + pub subtype: Option, + pub family: Option, + pub atk: Option, + pub def: Option, + pub level: Option, + pub url: String, + pub image_url: String } impl Link for YugiohCard {