pub enum RotationMethodSpec {
Manual,
ProviderUi {
url_template: &'static str,
},
ProviderApi,
}Expand description
How a secret of this kind is rotated.
Mirrors the same idea as
devboy_storage::RotationMethod
but stays in this crate to avoid a back-edge in the dep graph and
because the catalogue’s variant carries an extra URL template that
the storage RotationMethod does not.
Variants§
Manual
User rotates the secret themselves through the upstream UI;
devboy-tools records the new value and validates liveness.
The first release ships only this method
(ADR-023 §3.5 — provider-driven rotation is deferred).
ProviderUi
Reserved — devboy-tools opens the provider’s UI at the
templated URL and accepts the new value through the rotation
flow. Not wired in v1.
ProviderApi
Reserved — devboy-tools calls the provider’s rotation API
directly. Not wired in v1.
Trait Implementations§
Source§impl Clone for RotationMethodSpec
impl Clone for RotationMethodSpec
Source§fn clone(&self) -> RotationMethodSpec
fn clone(&self) -> RotationMethodSpec
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 RotationMethodSpec
impl Debug for RotationMethodSpec
impl Eq for RotationMethodSpec
Source§impl PartialEq for RotationMethodSpec
impl PartialEq for RotationMethodSpec
Source§fn eq(&self, other: &RotationMethodSpec) -> bool
fn eq(&self, other: &RotationMethodSpec) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for RotationMethodSpec
Auto Trait Implementations§
impl Freeze for RotationMethodSpec
impl RefUnwindSafe for RotationMethodSpec
impl Send for RotationMethodSpec
impl Sync for RotationMethodSpec
impl Unpin for RotationMethodSpec
impl UnsafeUnpin for RotationMethodSpec
impl UnwindSafe for RotationMethodSpec
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,
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.