-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Implemented Space trait for dynamic structures - Added constants files - Added require macros for string length and rating range - Added error enum
- Loading branch information
Showing
2 changed files
with
48 additions
and
2 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
pub const ANCHOR_DISCRIMINATOR: usize = 8; | ||
pub const PUBKEY_SIZE: usize = 32; | ||
pub const U8_SIZE: usize = 1; | ||
pub const STRING_LENGTH_PREFIX: usize = 4; | ||
pub const MAX_DESCRIPTION_LENGTH: usize = 50; | ||
pub const MAX_TITLE_LENGTH: usize = 20; | ||
pub const MAX_RATING: u8 = 5; | ||
pub const MIN_RATING: u8 = 1; |
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