-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into dependabot/cargo/clap-4.4.18
- Loading branch information
Showing
12 changed files
with
407 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,18 @@ | ||
use serde::Serialize; | ||
|
||
use crate::metadata::value::funder::Funder; | ||
use crate::metadata::value::identifier::GrantId; | ||
use crate::metadata::value::url::Url; | ||
use crate::metadata::value::{CreatedAt, CreatedBy, GrantNumber, GrantType, Name}; | ||
|
||
#[derive(Debug, Clone, PartialEq, Serialize)] | ||
pub struct Grant { | ||
pub id: GrantId, | ||
pub id: GrantId, // (1) | ||
pub created_at: CreatedAt, // (1) | ||
pub created_by: CreatedBy, // (1) | ||
pub type_of_grant: GrantType, // (1) | ||
pub name: Option<Name>, // (0-1) | ||
pub number: Option<GrantNumber>, // (0-1) | ||
pub url: Option<Url>, // (0-1) | ||
pub funders: Vec<Funder>, // (1-n) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
pub mod dataset; | ||
pub(crate) mod grant; | ||
pub mod grant; | ||
mod organization; | ||
mod person; | ||
pub mod project; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
#[derive(Debug, Clone, PartialEq, Eq, Hash, serde::Serialize)] | ||
pub struct Funder(pub String); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.