[−][src]Struct ironoxide::PrivateKeyRotationCheckResult
Provides soft rotation capabilities for user and group keys
Fields
rotations_needed: EitherOrBoth<UserId, Vec1<GroupId>>
Methods
impl PrivateKeyRotationCheckResult
[src]
pub fn user_rotation_needed(&self) -> Option<&UserId>
[src]
pub fn group_rotation_needed(&self) -> Option<&Vec1<GroupId>>
[src]
pub fn rotate_all(
&self,
ironoxide: &IronOxide,
password: &str
) -> Result<(Option<UserUpdatePrivateKeyResult>, Option<Vec<GroupUpdatePrivateKeyResult>>)>
[src]
&self,
ironoxide: &IronOxide,
password: &str
) -> Result<(Option<UserUpdatePrivateKeyResult>, Option<Vec<GroupUpdatePrivateKeyResult>>)>
Rotate the private key of the calling user and all groups they are an administrator of where needs_rotation is true. Note that this function has the potential to take much longer than other functions, as rotation will be done individually on each user/group. If rotation is only needed for a specific group, it is strongly recommended to call user_rotate_private_key() or group_rotate_private_key() instead.
Arguments
ironoxide
- IronOxide used to make authenticated requests for the calling userpassword
- Password to unlock the current user's user master key
Auto Trait Implementations
impl RefUnwindSafe for PrivateKeyRotationCheckResult
impl Send for PrivateKeyRotationCheckResult
impl Sync for PrivateKeyRotationCheckResult
impl Unpin for PrivateKeyRotationCheckResult
impl UnwindSafe for PrivateKeyRotationCheckResult
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,