Skip to content

Commit

Permalink
Merge pull request #13 from japanese-law-analysis/add-reference-type
Browse files Browse the repository at this point in the history
add Reference struct
  • Loading branch information
puripuri2100 authored Aug 25, 2024
2 parents 0f50d09 + 6aec776 commit 26392b4
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions jplaw_data_types/src/analysis.rs
Original file line number Diff line number Diff line change
Expand Up @@ -54,3 +54,18 @@ pub struct Ryakusyou {
/// 正式名称
seishiki: String,
}

/// 他の法律文書への参照
#[derive(Debug, Clone, PartialEq, Eq, Hash, Serialize, Deserialize)]
pub struct Reference {
/// 参照先の文書名
pub ref_name: String,
/// 参照先の条番号
pub ref_index: Option<ArticleIndex>,
/// 参照元の文書名
pub base_name: String,
/// 参照元の条番号
pub base_index: Option<ArticleIndex>,
/// テキストの保持
pub text: String,
}

0 comments on commit 26392b4

Please sign in to comment.