minidom/examples/articles.rs 🔗
@@ -27,8 +27,8 @@ const ARTICLE_NS: &str = "article";
#[derive(Debug)]
pub struct Article {
- title: String,
- body: String,
+ pub title: String,
+ pub body: String,
}
fn main() {
Maxime “pep” Buquet created
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
minidom/examples/articles.rs | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
@@ -27,8 +27,8 @@ const ARTICLE_NS: &str = "article";
#[derive(Debug)]
pub struct Article {
- title: String,
- body: String,
+ pub title: String,
+ pub body: String,
}
fn main() {