Enum ironoxide::InitAndRotationCheck
source · pub enum InitAndRotationCheck<T> {
NoRotationNeeded(T),
RotationNeeded(T, PrivateKeyRotationCheckResult),
}
Expand description
Result of calling initialize_check_rotation
Variants§
NoRotationNeeded(T)
Initialization succeeded, and no requests for private key rotations were present
RotationNeeded(T, PrivateKeyRotationCheckResult)
Initialization succeeded, but some keys should be rotated
Implementations§
source§impl<T> InitAndRotationCheck<T>
impl<T> InitAndRotationCheck<T>
sourcepub fn discard_check(self) -> T
pub fn discard_check(self) -> T
Caller asked to check rotation on initialize, but doesn’t want to handle the result. Consider using initialize instead.
sourcepub fn new_rotation_needed(
io: T,
rotations_needed: EitherOrBoth<UserId, Vec1<GroupId>>
) -> InitAndRotationCheck<T>
pub fn new_rotation_needed( io: T, rotations_needed: EitherOrBoth<UserId, Vec1<GroupId>> ) -> InitAndRotationCheck<T>
Convenience constructor to make an InitAndRotationCheck::RotationNeeded from an IronOxide
and an EitherOrBoth<UserId, Vec1
Trait Implementations§
source§impl<T: Clone> Clone for InitAndRotationCheck<T>
impl<T: Clone> Clone for InitAndRotationCheck<T>
source§fn clone(&self) -> InitAndRotationCheck<T>
fn clone(&self) -> InitAndRotationCheck<T>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<T: Debug> Debug for InitAndRotationCheck<T>
impl<T: Debug> Debug for InitAndRotationCheck<T>
source§impl<T: Hash> Hash for InitAndRotationCheck<T>
impl<T: Hash> Hash for InitAndRotationCheck<T>
source§impl<T: PartialEq> PartialEq for InitAndRotationCheck<T>
impl<T: PartialEq> PartialEq for InitAndRotationCheck<T>
source§fn eq(&self, other: &InitAndRotationCheck<T>) -> bool
fn eq(&self, other: &InitAndRotationCheck<T>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl<T: Eq> Eq for InitAndRotationCheck<T>
impl<T> StructuralEq for InitAndRotationCheck<T>
impl<T> StructuralPartialEq for InitAndRotationCheck<T>
Auto Trait Implementations§
impl<T> RefUnwindSafe for InitAndRotationCheck<T>where T: RefUnwindSafe,
impl<T> Send for InitAndRotationCheck<T>where T: Send,
impl<T> Sync for InitAndRotationCheck<T>where T: Sync,
impl<T> Unpin for InitAndRotationCheck<T>where T: Unpin,
impl<T> UnwindSafe for InitAndRotationCheck<T>where T: UnwindSafe,
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
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more