#[non_exhaustive]pub enum RoleVersionsError {
TooMany {
count: usize,
},
InvalidRole {
role: String,
},
InvalidVersion {
role: String,
version: String,
},
}Expand description
Why a role_versions map was refused.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
TooMany
The map has more than MAX_ROLE_VERSIONS entries.
InvalidRole
A role name is not lowercase ASCII letters and digits in words joined
by single hyphens (tool-provider), or is longer than
MAX_ROLE_NAME_LEN bytes.
InvalidVersion
A version is not v followed by a positive integer without leading
zeros (v1, v12).
Implementations§
Source§impl RoleVersionsError
impl RoleVersionsError
Sourcepub fn field(&self) -> &'static str
pub fn field(&self) -> &'static str
The request field the error is about: always ROLE_VERSIONS_FIELD.
Trait Implementations§
Source§impl Clone for RoleVersionsError
impl Clone for RoleVersionsError
Source§impl Debug for RoleVersionsError
impl Debug for RoleVersionsError
Source§impl Display for RoleVersionsError
impl Display for RoleVersionsError
impl Eq for RoleVersionsError
Source§impl Error for RoleVersionsError
impl Error for RoleVersionsError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl PartialEq for RoleVersionsError
impl PartialEq for RoleVersionsError
impl StructuralPartialEq for RoleVersionsError
Auto Trait Implementations§
impl Freeze for RoleVersionsError
impl RefUnwindSafe for RoleVersionsError
impl Send for RoleVersionsError
impl Sync for RoleVersionsError
impl Unpin for RoleVersionsError
impl UnsafeUnpin for RoleVersionsError
impl UnwindSafe for RoleVersionsError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more