rename identifier into primaryKey; fix #514

This commit is contained in:
qdequele
2020-03-09 18:40:49 +01:00
parent 8ffa80883a
commit c984d8d5a5
24 changed files with 142 additions and 142 deletions

View File

@ -6,7 +6,7 @@ pub type SResult<T> = Result<T, Error>;
#[derive(Debug)]
pub enum Error {
FieldNameNotFound(String),
IdentifierAlreadyPresent,
PrimaryKeyAlreadyPresent,
MaxFieldsLimitExceeded,
}
@ -15,7 +15,7 @@ impl fmt::Display for Error {
use self::Error::*;
match self {
FieldNameNotFound(field) => write!(f, "The field {:?} doesn't exist", field),
IdentifierAlreadyPresent => write!(f, "The schema already have an identifier. It's impossible to update it"),
PrimaryKeyAlreadyPresent => write!(f, "The schema already have an primary key. It's impossible to update it"),
MaxFieldsLimitExceeded => write!(f, "The maximum of possible reattributed field id has been reached"),
}
}