pub struct Cycle {
pub stack: String,
pub service: String,
pub key: String,
pub secret: String,
pub from: u64,
pub to: u64,
pub action: OnChange,
pub error: Option<String>,
}Expand description
What a new version of a secret did to one service of a stack.
Fields§
§stack: StringThe stack’s name in its org.
service: String§key: StringThe top-level secret key in the stack’s file.
secret: StringThe store name, or the driver’s reference.
from: u64§to: u64§action: OnChangeroll: a rolling update replaces the replicas. restart: each
replica gets the value and its app is restarted in place. none:
the value is delivered where it can be, nothing restarts, and the
replicas are stale until they next start.
error: Option<String>The secret’s rotate command failed: the stack keeps the version it
had, and nothing cycles.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Cycle
impl<'de> Deserialize<'de> for Cycle
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
impl Eq for Cycle
impl StructuralPartialEq for Cycle
Auto Trait Implementations§
impl Freeze for Cycle
impl RefUnwindSafe for Cycle
impl Send for Cycle
impl Sync for Cycle
impl Unpin for Cycle
impl UnsafeUnpin for Cycle
impl UnwindSafe for Cycle
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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.