Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: some struct member visibility problems. #54

Merged
merged 1 commit into from
Feb 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions src/bill/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -304,6 +304,22 @@ impl PaymentID {
checksum2,
})
}

pub fn get_amount(&self) -> u64 {
self.amount
}
pub fn get_year(&self) -> u8 {
self.year
}
pub fn get_period(&self) -> u8 {
self.period
}
pub fn get_checksum1(&self) -> u8 {
self.checksum1
}
pub fn get_checksum2(&self) -> u8 {
self.checksum2
}
}

/// Container for Both Bill and Payment IDs \
Expand Down
8 changes: 8 additions & 0 deletions src/extract_card_number/extracted_card_number.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,12 @@ impl ExtractedCardNumber {
pure: pure.into(),
}
}

pub fn get_base(&self) -> &str {
&self.base
}

pub fn get_pure(&self) -> &str {
&self.base
}
}
1 change: 1 addition & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
feature = "words-to-number",
feature = "sheba",
feature = "time-diff",
feature = "number-plate",
)))]
compile_error!("No available Cargo feature is included");

Expand Down