pub struct RotateSecretsResponse {
pub failed: i64,
pub last_id: Option<Uuid>,
pub remaining: i64,
pub rotated: i64,
pub to_version: i32,
}Expand description
Outcome of one rotation batch.
JSON schema
{
"description": "Outcome of one rotation batch.",
"type": "object",
"required": [
"failed",
"remaining",
"rotated",
"to_version"
],
"properties": {
"failed": {
"description": "Secrets skipped because they could not be decrypted.",
"type": "integer",
"format": "int64",
"minimum": 0.0
},
"last_id": {
"description": "Highest secret ID seen in this batch. Pass it back as `after_id` to\ncontinue; `null` means there is nothing left to do.",
"type": [
"string",
"null"
],
"format": "uuid"
},
"remaining": {
"description": "Secrets left on another key version after this batch.",
"type": "integer",
"format": "int64",
"minimum": 0.0
},
"rotated": {
"description": "Secrets successfully re-encrypted in this batch.",
"type": "integer",
"format": "int64",
"minimum": 0.0
},
"to_version": {
"description": "Key version the batch re-encrypted towards.",
"type": "integer",
"format": "int32"
}
}
}
```ignore
</details>Fields§
§failed: i64Secrets skipped because they could not be decrypted.
last_id: Option<Uuid>Highest secret ID seen in this batch. Pass it back as after_id to
continue; null means there is nothing left to do.
remaining: i64Secrets left on another key version after this batch.
rotated: i64Secrets successfully re-encrypted in this batch.
to_version: i32Key version the batch re-encrypted towards.
Implementations§
Source§impl RotateSecretsResponse
impl RotateSecretsResponse
pub fn builder() -> RotateSecretsResponse
Trait Implementations§
Source§impl Clone for RotateSecretsResponse
impl Clone for RotateSecretsResponse
Source§impl Debug for RotateSecretsResponse
impl Debug for RotateSecretsResponse
Source§impl<'de> Deserialize<'de> for RotateSecretsResponse
impl<'de> Deserialize<'de> for RotateSecretsResponse
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
Source§impl From<RotateSecretsResponse> for RotateSecretsResponse
impl From<RotateSecretsResponse> for RotateSecretsResponse
Source§fn from(value: RotateSecretsResponse) -> Self
fn from(value: RotateSecretsResponse) -> Self
Converts to this type from the input type.
Source§impl Serialize for RotateSecretsResponse
impl Serialize for RotateSecretsResponse
Source§impl TryFrom<RotateSecretsResponse> for RotateSecretsResponse
impl TryFrom<RotateSecretsResponse> for RotateSecretsResponse
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: RotateSecretsResponse) -> Result<Self, ConversionError>
fn try_from(value: RotateSecretsResponse) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for RotateSecretsResponse
impl RefUnwindSafe for RotateSecretsResponse
impl Send for RotateSecretsResponse
impl Sync for RotateSecretsResponse
impl Unpin for RotateSecretsResponse
impl UnsafeUnpin for RotateSecretsResponse
impl UnwindSafe for RotateSecretsResponse
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