pub struct Flight {
pub id: FlightId,
pub itinerary: ItineraryId,
pub from: Origin,
pub to: AgentName,
pub body: String,
pub hops_remaining: u32,
pub sent_at: Timestamp,
}Expand description
A message in transit between agents.
hops_remaining is mirrored here for the transcript. The authoritative value lives in the
Tower, keyed by itinerary, because a wrapped CLI is a black box that could otherwise claim
any budget it liked.
Fields§
§id: FlightIdUnique identifier.
itinerary: ItineraryIdThe chain this flight belongs to.
from: OriginWho sent it.
to: AgentNameWhich agent it is addressed to.
body: StringThe payload handed to the receiving agent.
hops_remaining: u32Legs remaining before the chain is cut.
sent_at: TimestampWhen the Tower accepted it.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Flight
impl<'de> Deserialize<'de> for Flight
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 Flight
impl StructuralPartialEq for Flight
Auto Trait Implementations§
impl Freeze for Flight
impl RefUnwindSafe for Flight
impl Send for Flight
impl Sync for Flight
impl Unpin for Flight
impl UnsafeUnpin for Flight
impl UnwindSafe for Flight
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