pub struct UpdateRotationSettings {
pub auto_rotate: bool,
pub json: Option<bool>,
pub name: String,
pub rotation_event_in: Option<Vec<String>>,
pub rotation_interval: Option<i64>,
pub token: Option<String>,
pub uid_token: Option<String>,
}Expand description
UpdateRotationSettings : updateRotationSettings is a command that updates rotations settings of an existing key
Fields§
§auto_rotate: boolWhether to automatically rotate every –rotation-interval days, or disable existing automatic rotation
json: Option<bool>Set output format to JSON
name: StringKey name
rotation_event_in: Option<Vec<String>>How many days before the rotation of the item would you like to be notified
rotation_interval: Option<i64>The number of days to wait between every automatic key rotation (7-365)
token: Option<String>Authentication token (see /auth and /configure)
uid_token: Option<String>The universal identity token, Required only for universal_identity authentication
Implementations§
Source§impl UpdateRotationSettings
impl UpdateRotationSettings
Sourcepub fn new(auto_rotate: bool, name: String) -> UpdateRotationSettings
pub fn new(auto_rotate: bool, name: String) -> UpdateRotationSettings
updateRotationSettings is a command that updates rotations settings of an existing key
Trait Implementations§
Source§impl Clone for UpdateRotationSettings
impl Clone for UpdateRotationSettings
Source§fn clone(&self) -> UpdateRotationSettings
fn clone(&self) -> UpdateRotationSettings
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 UpdateRotationSettings
impl Debug for UpdateRotationSettings
Source§impl Default for UpdateRotationSettings
impl Default for UpdateRotationSettings
Source§fn default() -> UpdateRotationSettings
fn default() -> UpdateRotationSettings
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for UpdateRotationSettings
impl<'de> Deserialize<'de> for UpdateRotationSettings
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 PartialEq for UpdateRotationSettings
impl PartialEq for UpdateRotationSettings
Source§fn eq(&self, other: &UpdateRotationSettings) -> bool
fn eq(&self, other: &UpdateRotationSettings) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for UpdateRotationSettings
impl Serialize for UpdateRotationSettings
impl StructuralPartialEq for UpdateRotationSettings
Auto Trait Implementations§
impl Freeze for UpdateRotationSettings
impl RefUnwindSafe for UpdateRotationSettings
impl Send for UpdateRotationSettings
impl Sync for UpdateRotationSettings
impl Unpin for UpdateRotationSettings
impl UnsafeUnpin for UpdateRotationSettings
impl UnwindSafe for UpdateRotationSettings
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