Skip to content

Commit 1ad58aa

Browse files
committed
export structs for direct access
1 parent 81afee1 commit 1ad58aa

File tree

3 files changed

+31
-14
lines changed

3 files changed

+31
-14
lines changed

src/lib.rs

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,19 @@
11
mod resume;
22
mod validation;
3+
4+
// Re-export all resume structures for direct access
5+
pub use resume::Resume;
6+
pub use resume::award::Award;
7+
pub use resume::basics::Basics;
8+
pub use resume::basics::location::Location;
9+
pub use resume::basics::profile::Profile;
10+
pub use resume::certificate::Certificate;
11+
pub use resume::education::Education;
12+
pub use resume::interest::Interest;
13+
pub use resume::language::Language;
14+
pub use resume::project::Project;
15+
pub use resume::publication::Publication;
16+
pub use resume::reference::Reference;
17+
pub use resume::skill::Skill;
18+
pub use resume::volunteer::Volunteer;
19+
pub use resume::work::Work;

src/resume.rs

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
use serde::{Deserialize, Serialize};
22
use serde_valid::Validate;
33

4-
mod award;
5-
mod basics;
6-
mod certificate;
7-
mod education;
8-
mod interest;
9-
mod language;
10-
mod project;
11-
mod publication;
12-
mod reference;
13-
mod skill;
14-
mod volunteer;
15-
mod work;
4+
pub mod award;
5+
pub mod basics;
6+
pub mod certificate;
7+
pub mod education;
8+
pub mod interest;
9+
pub mod language;
10+
pub mod project;
11+
pub mod publication;
12+
pub mod reference;
13+
pub mod skill;
14+
pub mod volunteer;
15+
pub mod work;
1616

1717
use award::Award;
1818
use basics::Basics;

src/resume/basics.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ use crate::validation::{validate_email, validate_url};
22
use serde::{Deserialize, Serialize};
33
use serde_valid::Validate;
44

5-
mod location;
6-
mod profile;
5+
pub mod location;
6+
pub mod profile;
77

88
use location::Location;
99
use profile::Profile;

0 commit comments

Comments
 (0)