Enum google_api_proto::google::cloud::kms::v1::crypto_key::RotationSchedule
source · pub enum RotationSchedule {
RotationPeriod(Duration),
}
Expand description
Controls the rate of automatic rotation.
Variants§
RotationPeriod(Duration)
[next_rotation_time][google.cloud.kms.v1.CryptoKey.next_rotation_time] will be advanced by this period when the service automatically rotates a key. Must be at least 24 hours and at most 876,000 hours.
If [rotation_period][google.cloud.kms.v1.CryptoKey.rotation_period] is set, [next_rotation_time][google.cloud.kms.v1.CryptoKey.next_rotation_time] must also be set.
Keys with [purpose][google.cloud.kms.v1.CryptoKey.purpose] [ENCRYPT_DECRYPT][google.cloud.kms.v1.CryptoKey.CryptoKeyPurpose.ENCRYPT_DECRYPT] support automatic rotation. For other keys, this field must be omitted.
Implementations§
source§impl RotationSchedule
impl RotationSchedule
sourcepub fn merge(
field: &mut Option<RotationSchedule>,
tag: u32,
wire_type: WireType,
buf: &mut impl Buf,
ctx: DecodeContext,
) -> Result<(), DecodeError>
pub fn merge( field: &mut Option<RotationSchedule>, tag: u32, wire_type: WireType, buf: &mut impl Buf, ctx: DecodeContext, ) -> Result<(), DecodeError>
Decodes an instance of the message from a buffer, and merges it into self.
sourcepub fn encoded_len(&self) -> usize
pub fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter.
Trait Implementations§
source§impl Clone for RotationSchedule
impl Clone for RotationSchedule
source§fn clone(&self) -> RotationSchedule
fn clone(&self) -> RotationSchedule
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for RotationSchedule
impl Debug for RotationSchedule
source§impl PartialEq for RotationSchedule
impl PartialEq for RotationSchedule
source§fn eq(&self, other: &RotationSchedule) -> bool
fn eq(&self, other: &RotationSchedule) -> bool
self
and other
values to be equal, and is used
by ==
.impl Copy for RotationSchedule
impl StructuralPartialEq for RotationSchedule
Auto Trait Implementations§
impl Freeze for RotationSchedule
impl RefUnwindSafe for RotationSchedule
impl Send for RotationSchedule
impl Sync for RotationSchedule
impl Unpin for RotationSchedule
impl UnwindSafe for RotationSchedule
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request