pub struct SetUpdateFreezePayload {
pub enabled: bool,
pub reason: Option<String>,
}Expand description
Controller → Agent: enable or disable the update freeze.
When enabled is true, the agent creates its freeze file, which blocks
ExecuteUpdate and ExecuteBatchUpdate messages until the file
is removed (either via a subsequent SetUpdateFreeze { enabled: false }
message, or manually on the host via rm <freeze-file>).
This message is safe for NATS publication — it contains no credentials.
Fields§
§enabled: boolWhether to enable (true) or disable (false) the freeze.
reason: Option<String>Optional human-readable reason for the freeze (audit trail).
Trait Implementations§
Source§impl Clone for SetUpdateFreezePayload
impl Clone for SetUpdateFreezePayload
Source§fn clone(&self) -> SetUpdateFreezePayload
fn clone(&self) -> SetUpdateFreezePayload
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 SetUpdateFreezePayload
impl Debug for SetUpdateFreezePayload
Source§impl<'de> Deserialize<'de> for SetUpdateFreezePayload
impl<'de> Deserialize<'de> for SetUpdateFreezePayload
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 SetUpdateFreezePayload
Source§impl PartialEq for SetUpdateFreezePayload
impl PartialEq for SetUpdateFreezePayload
Source§impl Serialize for SetUpdateFreezePayload
impl Serialize for SetUpdateFreezePayload
impl StructuralPartialEq for SetUpdateFreezePayload
Source§impl WireValidate for SetUpdateFreezePayload
impl WireValidate for SetUpdateFreezePayload
Source§fn wire_validate(&self) -> Result<(), WireValidationError>
fn wire_validate(&self) -> Result<(), WireValidationError>
Validate that all fields are within wire protocol size limits.
Auto Trait Implementations§
impl Freeze for SetUpdateFreezePayload
impl RefUnwindSafe for SetUpdateFreezePayload
impl Send for SetUpdateFreezePayload
impl Sync for SetUpdateFreezePayload
impl Unpin for SetUpdateFreezePayload
impl UnsafeUnpin for SetUpdateFreezePayload
impl UnwindSafe for SetUpdateFreezePayload
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,
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.