pub struct UpdateComponentCommand {
pub component_id: ComponentId,
pub annotations: Option<HashMap<String, String>>,
pub host_id: String,
pub new_component_ref: String,
}
Expand description
A command instructing a specific host to perform a live update on the indicated component by supplying a new image reference. Note that live updates are only possible through image references
Fields§
§component_id: ComponentId
The component’s 56-character unique ID
annotations: Option<HashMap<String, String>>
Optional set of annotations used to describe the nature of this update request. Only component instances that have matching annotations will be upgraded, allowing for instance isolation by
host_id: String
The host ID of the host to perform the live update
new_component_ref: String
The new image reference of the upgraded version of this component
Trait Implementations§
source§impl Clone for UpdateComponentCommand
impl Clone for UpdateComponentCommand
source§fn clone(&self) -> UpdateComponentCommand
fn clone(&self) -> UpdateComponentCommand
Returns a copy of the value. Read more
1.0.0 · 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 UpdateComponentCommand
impl Debug for UpdateComponentCommand
source§impl Default for UpdateComponentCommand
impl Default for UpdateComponentCommand
source§fn default() -> UpdateComponentCommand
fn default() -> UpdateComponentCommand
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for UpdateComponentCommand
impl<'de> Deserialize<'de> for UpdateComponentCommand
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 UpdateComponentCommand
impl PartialEq for UpdateComponentCommand
source§fn eq(&self, other: &UpdateComponentCommand) -> bool
fn eq(&self, other: &UpdateComponentCommand) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for UpdateComponentCommand
impl Serialize for UpdateComponentCommand
impl Eq for UpdateComponentCommand
impl StructuralPartialEq for UpdateComponentCommand
Auto Trait Implementations§
impl Freeze for UpdateComponentCommand
impl RefUnwindSafe for UpdateComponentCommand
impl Send for UpdateComponentCommand
impl Sync for UpdateComponentCommand
impl Unpin for UpdateComponentCommand
impl UnwindSafe for UpdateComponentCommand
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<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.