pub struct CommandEnvelope {
pub kind: String,
pub target_pc_id: String,
pub expires_at: DateTime<Utc>,
pub command: Command,
}Expand description
The network form of a v2 command.
Fields§
§kind: String§target_pc_id: StringThe exact registered pc_id of the one host allowed to run this; case is preserved and compared byte for byte.
expires_at: DateTime<Utc>Absolute UTC deadline for starting the command. Not an instruction to kill a process that is already running.
command: CommandTrait Implementations§
Source§impl Clone for CommandEnvelope
impl Clone for CommandEnvelope
Source§impl Debug for CommandEnvelope
impl Debug for CommandEnvelope
Source§impl<'de> Deserialize<'de> for CommandEnvelope
impl<'de> Deserialize<'de> for CommandEnvelope
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
Auto Trait Implementations§
impl Freeze for CommandEnvelope
impl RefUnwindSafe for CommandEnvelope
impl Send for CommandEnvelope
impl Sync for CommandEnvelope
impl Unpin for CommandEnvelope
impl UnsafeUnpin for CommandEnvelope
impl UnwindSafe for CommandEnvelope
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