pub enum RotationValidationError {
InvalidName,
InvalidAccountIdentity,
InvalidPasswordLengthBounds,
NoCharacterClasses,
InvalidCron,
SessionTerminationUnsupported,
TargetSystemSealInvalid,
TargetSystemMethodMismatch,
TargetSystemKindMismatch,
RotationConfigImmutableFieldMismatch,
}Expand description
Errors from validating a rotation request before it is sent to the server.
Variants§
InvalidName
A name was empty (after trimming) or exceeded the server’s length limit.
InvalidAccountIdentity
account_identity was empty (after trimming) or exceeded the server’s length limit.
InvalidPasswordLengthBounds
Password lengths out of order or outside the generator’s range.
NoCharacterClasses
A password policy enabled no character classes, so no credential could satisfy it.
InvalidCron
schedule_cron was present but is not shaped like a Quartz cron expression.
SessionTerminationUnsupported
terminate_sessions was requested but the target doesn’t confirm
supports_session_termination.
TargetSystemSealInvalid
The rotation config’s target system has a sealed blob that can’t be verified.
TargetSystemMethodMismatch
An update tried to change a target system’s method.
TargetSystemKindMismatch
An update tried to change a target system’s sealed kind.
RotationConfigImmutableFieldMismatch
An update tried to change a rotation config’s cipher_id or target_system_id.
Trait Implementations§
Source§impl Debug for RotationValidationError
impl Debug for RotationValidationError
Source§impl Display for RotationValidationError
impl Display for RotationValidationError
impl Eq for RotationValidationError
Source§impl Error for RotationValidationError
impl Error for RotationValidationError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
Source§impl From<PasswordPolicyError> for RotationValidationError
impl From<PasswordPolicyError> for RotationValidationError
Source§impl From<RotationValidationError> for RotationError
impl From<RotationValidationError> for RotationError
Source§fn from(source: RotationValidationError) -> Self
fn from(source: RotationValidationError) -> Self
Source§impl PartialEq for RotationValidationError
impl PartialEq for RotationValidationError
impl StructuralPartialEq for RotationValidationError
Auto Trait Implementations§
impl Freeze for RotationValidationError
impl RefUnwindSafe for RotationValidationError
impl Send for RotationValidationError
impl Sync for RotationValidationError
impl Unpin for RotationValidationError
impl UnsafeUnpin for RotationValidationError
impl UnwindSafe for RotationValidationError
Blanket Implementations§
§impl<T> AnySync for T
impl<T> AnySync for T
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
§impl<T> CompatExt for T
impl<T> CompatExt for T
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<T, UT> HandleAlloc<UT> for T
impl<T, UT> HandleAlloc<UT> for T
§fn new_handle(value: Arc<T>) -> Handle
fn new_handle(value: Arc<T>) -> Handle
§unsafe fn clone_handle(handle: Handle) -> Handle
unsafe fn clone_handle(handle: Handle) -> Handle
§unsafe fn consume_handle(handle: Handle) -> Arc<T> ⓘ
unsafe fn consume_handle(handle: Handle) -> Arc<T> ⓘ
Arc<> Read more§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more