-
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 pull request #8 from ImaMapleTree/feature/release-0.2.3-default…
…-all Added default(all) and split crate into multiple features
- Loading branch information
Showing
25 changed files
with
760 additions
and
398 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,31 @@ | ||
// while redundant this file exists as a possible user-reference to discover all possible properties | ||
// available to them for a certain element | ||
|
||
|
||
// error messages | ||
pub(crate) const CONFIG_PROP_ERR_MSG: &str = | ||
"Unexpected property: \"{prop}\" (must be one of the following: \"{values}\")"; | ||
pub(crate) const DEFAULT_CTOR_ERR_MSG: &str = | ||
"Default constructor requires field to generate its own value."; | ||
|
||
pub(crate) const CTOR_WORD: &str = "ctor"; | ||
|
||
// valid field properties | ||
pub(crate) const FIELD_PROP_CLONED: &str = "cloned"; | ||
pub(crate) const FIELD_PROP_DEFAULT: &str = "default"; | ||
pub(crate) const FIELD_PROP_EXPR: &str = "expr"; | ||
pub(crate) const FIELD_PROP_INTO: &str = "into"; | ||
pub(crate) const FIELD_PROP_ITER: &str = "iter"; | ||
|
||
// valid enum-config properties | ||
pub(crate) const ENUM_PROP_PREFIX: &str = "prefix"; | ||
pub(crate) const ENUM_PROP_VISIBILITY: &str = "visibility"; | ||
pub(crate) const ENUM_PROP_VIS: &str = "vis"; | ||
|
||
// variation property | ||
pub(crate) const ENUM_VARIATION_PROP_NONE: &str = "none"; | ||
|
||
// struct config properties | ||
pub(crate) const STRUCT_PROP_DEFAULT: &str = "default"; | ||
// property used within the default() prop | ||
pub(crate) const NESTED_PROP_ALL: &str = "all"; |
Oops, something went wrong.