pub struct CommanderDirective {
pub kind: String,
pub fleet: String,
pub budget_usd: Option<f64>,
pub nonce: String,
pub issued_at_ms: u64,
}Expand description
A cryptographically-signed instruction from the Commander governance plane.
Serialised as a JSON object and placed under COMMANDER_DIRECTIVE_KEY
in a ChannelEvent.payload appended to the fleet-<name> channel. The
signing layer lives in mur-core; this crate only owns the payload shape.
Cross-network A2A-envelope delivery is Phase 2.
Fields§
§kind: StringDirective kind, e.g. "kill", "budget_ceiling".
fleet: StringTarget fleet name.
budget_usd: Option<f64>Optional budget ceiling in USD; >=0 is honoured, <0/NaN ignored.
nonce: StringReplay-prevention nonce (UUID v4 recommended).
issued_at_ms: u64Wall-clock milliseconds since Unix epoch when the directive was issued.
Trait Implementations§
Source§impl Clone for CommanderDirective
impl Clone for CommanderDirective
Source§fn clone(&self) -> CommanderDirective
fn clone(&self) -> CommanderDirective
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 CommanderDirective
impl Debug for CommanderDirective
Source§impl<'de> Deserialize<'de> for CommanderDirective
impl<'de> Deserialize<'de> for CommanderDirective
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 CommanderDirective
impl PartialEq for CommanderDirective
Source§fn eq(&self, other: &CommanderDirective) -> bool
fn eq(&self, other: &CommanderDirective) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for CommanderDirective
impl Serialize for CommanderDirective
impl StructuralPartialEq for CommanderDirective
Auto Trait Implementations§
impl Freeze for CommanderDirective
impl RefUnwindSafe for CommanderDirective
impl Send for CommanderDirective
impl Sync for CommanderDirective
impl Unpin for CommanderDirective
impl UnsafeUnpin for CommanderDirective
impl UnwindSafe for CommanderDirective
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