pub struct RotationResult {
pub previous_version: Option<u32>,
pub new_version: u32,
}Expand description
Result of a secret rotation — records the version before and after the rotate call.
Fields§
§previous_version: Option<u32>Version number prior to rotation. None if the secret did not exist before.
new_version: u32Version number after rotation (always set — it’s a fresh write).
Trait Implementations§
Source§impl Clone for RotationResult
impl Clone for RotationResult
Source§fn clone(&self) -> RotationResult
fn clone(&self) -> RotationResult
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RotationResult
impl Debug for RotationResult
Source§impl<'de> Deserialize<'de> for RotationResult
impl<'de> Deserialize<'de> for RotationResult
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for RotationResult
Source§impl PartialEq for RotationResult
impl PartialEq for RotationResult
Source§fn eq(&self, other: &RotationResult) -> bool
fn eq(&self, other: &RotationResult) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for RotationResult
impl Serialize for RotationResult
impl StructuralPartialEq for RotationResult
Auto Trait Implementations§
impl Freeze for RotationResult
impl RefUnwindSafe for RotationResult
impl Send for RotationResult
impl Sync for RotationResult
impl Unpin for RotationResult
impl UnsafeUnpin for RotationResult
impl UnwindSafe for RotationResult
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.