pub struct RotateSecretsRequest {
pub after_id: Option<Uuid>,
pub batch_size: Option<i32>,
pub to_version: Option<i32>,
}Expand description
Request body for rotating a batch of secrets to another key version.
Rotation is driven one batch per call so a long rotation never becomes a
long HTTP request: the client loops, carrying after_id forward.
JSON schema
{
"description": "Request body for rotating a batch of secrets to another key version.\n\nRotation is driven one batch per call so a long rotation never becomes a\nlong HTTP request: the client loops, carrying `after_id` forward.",
"type": "object",
"properties": {
"after_id": {
"description": "Resume after this secret ID. Omit to start from the beginning.",
"type": [
"string",
"null"
],
"format": "uuid"
},
"batch_size": {
"description": "Secrets to process in this batch. Defaults to 100, clamped to 1000.",
"type": [
"integer",
"null"
],
"format": "int32",
"minimum": 0.0
},
"to_version": {
"description": "Target key version. Defaults to the server's active version.",
"type": [
"integer",
"null"
],
"format": "int32"
}
}
}
```ignore
</details>Fields§
§after_id: Option<Uuid>Resume after this secret ID. Omit to start from the beginning.
batch_size: Option<i32>Secrets to process in this batch. Defaults to 100, clamped to 1000.
to_version: Option<i32>Target key version. Defaults to the server’s active version.
Implementations§
Source§impl RotateSecretsRequest
impl RotateSecretsRequest
pub fn builder() -> RotateSecretsRequest
Trait Implementations§
Source§impl Clone for RotateSecretsRequest
impl Clone for RotateSecretsRequest
Source§impl Debug for RotateSecretsRequest
impl Debug for RotateSecretsRequest
Source§impl Default for RotateSecretsRequest
impl Default for RotateSecretsRequest
Source§impl<'de> Deserialize<'de> for RotateSecretsRequest
impl<'de> Deserialize<'de> for RotateSecretsRequest
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<RotateSecretsRequest> for RotateSecretsRequest
impl From<RotateSecretsRequest> for RotateSecretsRequest
Source§fn from(value: RotateSecretsRequest) -> Self
fn from(value: RotateSecretsRequest) -> Self
Converts to this type from the input type.
Source§impl Serialize for RotateSecretsRequest
impl Serialize for RotateSecretsRequest
Source§impl TryFrom<RotateSecretsRequest> for RotateSecretsRequest
impl TryFrom<RotateSecretsRequest> for RotateSecretsRequest
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: RotateSecretsRequest) -> Result<Self, ConversionError>
fn try_from(value: RotateSecretsRequest) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for RotateSecretsRequest
impl RefUnwindSafe for RotateSecretsRequest
impl Send for RotateSecretsRequest
impl Sync for RotateSecretsRequest
impl Unpin for RotateSecretsRequest
impl UnsafeUnpin for RotateSecretsRequest
impl UnwindSafe for RotateSecretsRequest
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